home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Applications 1999 November / SGI IRIX 6.5 Applications 1999 November.iso / dev / insight_dev.idb / usr / share / ebt / include / basictk.h.z / basictk.h
Encoding:
C/C++ Source or Header  |  1998-10-28  |  64.5 KB  |  4,109 lines

  1. /** DTL/dtl.h
  2. Copyright (c) 1990-1997, Inso Corporation
  3. All Rights Reserved.
  4. This work contains confidential trade secrets of Inso.  
  5. Use, examination, copying, transfer and disclosure to others
  6. are prohibited, except with the express written agreement of Inso.
  7.  
  8. This file is the public header file for the DynaText Libary.
  9. **/
  10.  
  11.  
  12. #ifndef DTL_HEADER
  13. #define DTL_HEADER
  14.  
  15.  
  16. /** Includes
  17. stdio: Standard input and output
  18. X11/Intrinsic.h: X Definitions
  19. **/
  20.  
  21. #define DTL_VERSION     3.11
  22.  
  23. /* DynaText Toolkit Library version constants */
  24. #define DTL__LIBRARY_MAJOR_VERSION    11
  25. #define DTL__LIBRARY_MINOR_VERSION    1
  26.  
  27.  
  28. #ifdef DTL__FULL_TOOLKIT
  29. #endif /* DTL__FULL_TOOLKIT */
  30.  
  31. /*
  32. Compile time check for DTL__<platform>_DEFS.
  33. They are mutually exclusive, so cause an error
  34. if two are defined.
  35. */
  36. #ifdef DTL__X_DEFS
  37. #ifdef DTL__WINDOWS_DEFS
  38. #ifndef MDEPEND
  39. #error
  40. #endif /* MDEPEND */
  41. #endif /* DTL__WINDOWS_DEFS */
  42. #ifdef DTL__MAC_DEFS
  43. #ifndef MDEPEND
  44. #error
  45. #endif /* MDEPEND */
  46. #endif /* DTL__MAC_DEFS */
  47. #endif /* DTL__X_DEFS */
  48.  
  49. #ifdef DTL__WINDOWS_DEFS
  50. #ifdef DTL__MAC_DEFS
  51. #ifndef MDEPEND
  52. #error
  53. #endif /* MDEPEND */
  54. #endif /* DTL__MAC_DEFS */
  55. #endif /* DTL__WINDOWS_DEFS */
  56.  
  57. #ifndef MDEPEND
  58. #include <stdio.h>
  59.  
  60. #ifdef DTL__X_DEFS
  61. #include <X11/Intrinsic.h>
  62. #endif /* DTL__X_DEFS */
  63.  
  64. #ifdef DTL__WINDOWS_DEFS
  65. #include <windows.h>
  66. #endif /* DTL__WINDOWS_DEFS */
  67.  
  68. #endif /* MDEPEND */
  69.  
  70. #include <ebttypes.h>
  71.  
  72.  
  73. /** Compiler Definitions
  74. We quickly try to determine two characteristics about our
  75. compiler:
  76. 1) Should we be using prototypes?
  77. 2) Can we use the void * datatype?
  78. **/
  79.  
  80. #ifndef OS_HEADER
  81.  
  82. #ifndef DTL__NO_PROTOTYPES
  83. #define use_prototypes
  84. #define use_void
  85. #endif /* DTL__NO_PROTOTYPES */
  86.  
  87.  
  88. /** Standard Datatypes
  89. Extract:
  90. We create some standard datatypes here:
  91.    Up: universal pointer
  92. **/
  93.  
  94. #ifdef use_void
  95. typedef void * Up;
  96. #else
  97. typedef char * Up;
  98. #endif /* use_void */
  99.  
  100.  
  101. /** OS Constants
  102. **/
  103.  
  104. #if defined(__cplusplus) || defined(__STDC__)
  105. #define OS_CONST const
  106. #else
  107. #define OS_CONST 
  108. #endif
  109.  
  110. #if defined(DTL__WINDOWS_DEFS)
  111. #define OS_EXPORT    __declspec(dllexport)
  112. #define OS_IMPORT    __declspec(dllimport)
  113. #else
  114. #define OS_EXPORT
  115. #define OS_IMPORT
  116. #endif
  117.  
  118. #if defined(DTL__WINDOWS_DEFS)
  119. #define OS_PASCAL     __stdcall
  120. #define OS_PASCALCB     __stdcall
  121. #elif defined(DTL__MAC_DEFS)
  122. #define OS_PASCAL     pascal
  123. #define OS_PASCALCB     CALLBACK
  124. #else
  125. #define OS_PASCAL 
  126. #define OS_PASCALCB 
  127. #endif
  128.  
  129. #define OS_CDECL     
  130. #define OS_CDECLCB 
  131.  
  132. #endif /* OS_HEADER */
  133.  
  134. /***************************************************************/
  135. /* Plugin users must define DTL__PLUGIN before including DTL.H */
  136. /***************************************************************/
  137. #ifdef DTL__PLUGIN
  138.  
  139. #define DTL_EXPORT
  140.  
  141. #else
  142.  
  143. #ifdef DTL__WINDOWS_DLL
  144. #define DTL_EXPORT OS_EXPORT
  145. #else
  146. #define DTL_EXPORT OS_IMPORT
  147. #endif
  148.  
  149. #endif
  150. /***************************************************************/
  151.  
  152.  
  153. /** More Standard Datatypes
  154. DTL__STRING_LENGTH: length of some API strings.  
  155. DTL__HUGE_LENGTH: huge string length.
  156. **/
  157.  
  158.  
  159. #define DTL__STRING_LENGTH    256
  160. #define DTL__HUGE_LENGTH    1024
  161.  
  162.  
  163.  
  164. /** Application Return Codes 
  165. Doc:
  166.    1) An enumeration of function return error codes.
  167.    2) An enumeration of regular return codes.
  168. **/
  169.  
  170. enum {
  171.    /*** application ***/
  172.    DTL__ERROR = -1,
  173.    DTL__SUCCESS = 0,
  174.    DTL__INITIALIZATION_ERROR,
  175.    DTL__GRAPHICS_ERROR,
  176.    DTL__BAD_WINDOW_ERROR,
  177.    DTL__MEMORY_ERROR,
  178.  
  179.    /*** book ***/
  180.    DTL__AUTHORIZATION_ERROR,
  181.    DTL__BOOK_READING_ERROR,
  182.    DTL__BOOK_ALREADY_OPEN_ERROR,
  183.    DTL__INDEX_READING_ERROR,
  184.  
  185.    /*** view ***/
  186.    DTL__ELEMENT_ID_ERROR,
  187.    DTL__STYLESHEET_ERROR,
  188.  
  189.    /*** query ***/
  190.    DTL__STOP_LIST_ERROR,
  191.    DTL__QUERY_ERROR,
  192.    DTL__STOP_LIST_NO_MATCH_ERROR,
  193.  
  194.    /*** other ***/
  195.    DTL__NO_MATCH_ERROR,
  196.  
  197.    /*** collection window ***/
  198.    DTL__OVERFLOW_ERROR,
  199.  
  200.    /*** API misusage ***/
  201.    DTL__BAD_ARGUMENTS,
  202.    DTL__MENU_ITEM_NOT_CHECKABLE
  203. };
  204.  
  205. enum {
  206.    DTL__SEQUENCE_RUNNING,
  207.    DTL__SEQUENCE_FINISHED
  208. };
  209.  
  210. /** Dtl Callback Return Values
  211. DTL__CALLBACK_RETURN_DISABLE:
  212.    disable item (grey it out)
  213. DTL__CALLBACK_RETURN_REMOVE:
  214.    remove item (get rid of it altogether)
  215. DTL__CALLBACK_RETURN_SHOW:
  216.    show item, keep item as it was
  217. **/
  218.  
  219. enum {
  220.    DTL__CALLBACK_RETURN_DISABLE,
  221.    DTL__CALLBACK_RETURN_REMOVE,
  222.    DTL__CALLBACK_RETURN_SHOW
  223. };
  224.  
  225.  
  226. /** Dtl Options
  227. Dtl Options: These can be passed to DTLsetOption() and DTLgetOption().
  228.              See DTLsetOption() for further explanation.
  229. **/
  230.  
  231. #define DTL__SAVE_ALL_OPTIONS -1
  232. enum {
  233.    DTL__PRINT_FILE_OPTION = 0,
  234.    DTL__QUERY_FEEDBACK_OPTION,
  235.    DTL__EXACT_WITH_ACCENT_OPTION,
  236.    DTL__EXACT_WITHOUT_ACCENT_OPTION,
  237.    DTL__COPY_MODE_OPTION,
  238.    DTL__SPOOLER_OPTION,
  239.    DTL__HELP_BOOK_NAME_OPTION,
  240.    DTL__NUMBER_OPTIONS
  241. };
  242.  
  243.  
  244. /** Dtl Variables
  245. Dtl Variable: These are some standard values that can be used with
  246.               DTLsetVariable() and DTLgetVariable(). See DTLsetVariable()
  247.               for further explanation.
  248. **/
  249.  
  250. #define DTL__DATA_DIR_VARIABLE                "data_dir"
  251. #define DTL__USER_CATALOGS_VARIABLE           "user_catalogs"
  252. #define DTL__SORT_COLLS_VARIABLE              "sort_colls"
  253. #define DTL__CONFIG_FILE_VARIABLE             "config_file"
  254. #define DTL__INLINE_CACHE_VARIABLE            "inline_cache"
  255. #define DTL__COLL_CACHE_VARIABLE              "coll_cache"
  256. #define DTL__LIBRARY_PATH_VARIABLE            "library_path"
  257. #define DTL__REGISTRY_VARIABLE                "registry"
  258. #define DTL__SUPPRESS_CLEANUP_VARIABLE        "suppress_cleanup"
  259. #define DTL__SUPPRESS_ERROR_DIALOG_VARIABLE   "suppress_error_dialog"
  260. #define DTL__BACKGROUND_ANNOTATION_VARIABLE   "background_annots"
  261. #define DTL__EXPORT_XML_VARIABLE              "export_xml"
  262.  
  263. /** Application Types
  264. Doc:
  265. DTL__COPY...: 
  266.    The different copy modes allow you to copy data
  267.    from the browser and toc in all of the possible ways.
  268.  
  269. DTL__COPY_BASIC:
  270.    Copies just the text.
  271. DTL__COPY_SGML:
  272.    Copies the sgml.
  273. DTL__COPY_DERIVED:
  274.    Copies the text as rendererd, with text-before/after and
  275.    line breaks as you see them.
  276. DTL__COPY_SGML_DERIVED:
  277.    Same as COPY_DERIVED, but also copies sgml.
  278. DTL__COPY_LOCATION:
  279.    Copies an identifier for the current location to clipboard.
  280. DTL__COPY_TITLES:
  281.    Copies just the titles from TOC.
  282. DTL__COPY_TITLES_SGML:
  283.    Copies titles with the sgml.
  284. **/
  285.  
  286. enum {
  287.    DTL__COPY_BASIC = 0,
  288.    DTL__COPY_SGML = 1,
  289.    DTL__COPY_DERIVED = 2,
  290.    DTL__COPY_SGML_DERIVED = 3,
  291.    DTL__COPY_LOCATION = 4,
  292.    DTL__COPY_TITLES = 5,
  293.    DTL__COPY_TITLES_SGML = 6
  294. };
  295.  
  296. /** Application Gui Datatypes
  297. Doc:
  298.    DtlGuiId: 
  299.       Device independent method to pass around GUI constructs.
  300.       This structure has different members for each platform:
  301.  
  302. UNIX:
  303.    Display    *display     X display 
  304.    XtAppContext    context         App Context 
  305.    Widget    window         window currently in discussion 
  306.  
  307. WINDOWS:
  308.    HANDLE   hInstance;
  309.    HANDLE   hPrevInstance;
  310.    LPSTR    lpszCmdParam;
  311.    int      nCmdShow;
  312.    HWND     window;
  313.  
  314.  MAC:
  315.    int            *display;
  316.    int            context;
  317.    WindowPtr    window;
  318. **/
  319.  
  320. #ifdef DTL__X_DEFS
  321. typedef struct _DtlGui {
  322.    Display    *display;
  323.    XtAppContext    context;
  324.    Widget    window;
  325. } DtlGui;
  326. #endif /* DTL__X_DEFS */
  327.  
  328. #ifdef DTL__WINDOWS_DEFS
  329. typedef struct _DtlGui {
  330.    HANDLE   hInstance;
  331.    HANDLE   hPrevInstance;
  332.    LPSTR    lpszCmdParam;
  333.    int      nCmdShow;
  334.    HWND     window;
  335. } DtlGui;
  336. #endif /* DTL__WINDOWS_DEFS */
  337.  
  338. #ifdef DTL__MAC_DEFS
  339. typedef struct _DtlGui {
  340.    int            *display;
  341.    int            context;
  342.    WindowPtr    window;
  343. } DtlGui;
  344. #endif /* DTL__MAC_DEFS */
  345.  
  346. typedef struct _DtlGui        *DtlGuiId;
  347.  
  348.  
  349. /** Major Datatypes
  350. DtlExrefId: is used as a handle to external scripts which have been created.
  351. DtlContextId: application context
  352. DtlViewId: view identifier of dtl view
  353. DtlBookId: book identifier
  354. DtlTocViewId: toc view identifier
  355. DtlGraphicId: the graphic identifier
  356. **/
  357.  
  358. typedef struct _DtlContext  *DtlContextId;
  359. typedef struct _DtlExref * DtlExrefId;
  360. typedef struct _DtlView  * DtlViewId;
  361. typedef struct _DtlBook  *DtlBookId;
  362. typedef struct _DtlTocView * DtlTocViewId;
  363. typedef struct _DtlGraphic * DtlRasterId;
  364. typedef struct _DtlGraphic * DtlGraphicId;
  365. typedef struct _DtlColWin * DtlColWinId;
  366. typedef struct _DtlColWinSeq * DtlColWinSeqId;
  367. typedef struct _DtlBookSeq * DtlBookSeqId;
  368. typedef struct _DtlViewSeq * DtlViewSeqId;
  369. typedef struct _DtlTocViewSeq * DtlTocViewSeqId;
  370. typedef struct _DtlMenuItem * DtlMenuItemId;
  371.  
  372.  
  373. /** Plugin Datatypes
  374. **/
  375. typedef void *DtlPluginId;
  376.  
  377.  
  378. /** DtlPluginInfo
  379. System specific plugin info.
  380. **/
  381.  
  382. typedef struct _DtlPluginInfo {
  383.    DtlContextId contextId;
  384.    Up user_data;
  385.    /* windows-only stuff */
  386. #ifdef DTL__WINDOWS_DEFS
  387.    void *mdiContextId;
  388.    void *dtlDdeMgrId;
  389.    void *newContextAddress;   
  390.    void *hAppInstance;
  391.    void *hDtlInstance;
  392. #endif /* DTL__WINDOWS_DEFS */
  393.  
  394. } DtlPluginInfo;
  395.  
  396. typedef struct _DtlPluginInfo *DtlPluginInfoId;
  397.  
  398. typedef struct _DtlPropertyValueInfo {
  399.    DtlContextId contextId;
  400.    DtlBookId bookId;
  401.    unsigned long element;
  402. } DtlPropertyValueInfo;
  403.  
  404. typedef struct _DtlPropertyValueInfo *DtlPropertyValueInfoId;
  405.  
  406. /** Major Callback Procs
  407. DtlApplicationCallbackProc: callbacks from addApplicationCallback.
  408. DtlScriptConstructProc: callback for constructing scripts
  409. DtlScriptRefreshProc: callback for refreshing scripts
  410. DtlScriptDestructProc: callback for destructing scripts
  411. DtlAnnotScriptConstructProc: callback for constructing annotScripts
  412. DtlAnnotScriptRefreshProc: callback for refreshing annotScripts
  413. DtlAnnotScriptDestructProc: callback for destructing annotScripts
  414. DtlInlineScriptConstructProc: callback for creating an inline object
  415. DtlInlineScriptResizeProc: callback for resizing an inline object
  416. DtlInlineScriptDestroyProc: callback for destroying an inline object
  417.  
  418. DtlBookCallbackProc: callbacks from addViewCallback
  419. DtlViewCallbackProc: callbacks from addViewCallback
  420. DtlTocViewCallbackProc: callbacks from addTocViewCallback
  421. DtlTocViewGeneratorProc: callbacks from DTLgenerateTocSelections
  422. DtlGraphicCallbackProc: callbacks from addGraphicCallback
  423.  
  424. DtlGraphicLoadProc: callback to create a graphic image
  425.  
  426. DtlPropertyValueProc: callback for prop value functions
  427. DtlwPropertyValueProc: newer callback for prop value functions (Unicode)
  428.  
  429. DtlMenuItemProc: callback from a DTLmenu item
  430. **/
  431.  
  432. #ifdef use_prototypes
  433.  
  434. typedef void (OS_PASCALCB *DtlApplicationCallbackProc)
  435.   (DtlContextId, Up udata, 
  436.    Up calldata1, Up calldata2, Up calldata3, Up calldata4);
  437.  
  438. typedef void (OS_PASCALCB *DtlBookCallbackProc)
  439.    (DtlBookId, Up udata, Up cd1, Up cd2);
  440.  
  441. typedef void (OS_PASCALCB *DtlViewCallbackProc)
  442.    (DtlViewId, Up udata, Up cd1, Up cd2,Up cd3);
  443.  
  444. typedef void (OS_PASCALCB *DtlTocViewCallbackProc)
  445.    (DtlTocViewId, Up udata, Up cd1, Up cd2);
  446.  
  447. typedef int (OS_PASCALCB *DtlTocViewGeneratorProc)
  448.    (DtlTocViewId, Up udata, unsigned long eid);
  449.  
  450. typedef void (OS_PASCALCB *DtlRasterCallbackProc)
  451.    (DtlRasterId, Up udata, Up cd1, Up cd2, Up cd3, Up cd4);
  452.  
  453. typedef void (OS_PASCALCB *DtlGraphicCallbackProc)
  454.    (DtlGraphicId, Up udata, Up cd1, Up cd2, Up cd3, Up cd4);
  455.  
  456. typedef int (OS_PASCALCB *DtlGraphicLoadProc)
  457.    (Up data, char *filename, Up  pixmap, Up cmap, int *w, int *h, int *depth);
  458.  
  459. /*****************************************************************/
  460.  
  461. typedef Up (OS_PASCALCB *DtlScriptConstructProc)
  462.    (DtlViewId, Up, DtlExrefId, unsigned long, char *);
  463.  
  464. typedef void (OS_PASCALCB *DtlScriptRefreshProc)
  465.    (DtlViewId, Up, DtlExrefId, unsigned long);
  466.  
  467. typedef void (OS_PASCALCB *DtlScriptDestructProc)
  468.    (DtlViewId, Up, DtlExrefId, unsigned long);
  469.  
  470. /*****************************************************************/
  471.  
  472. typedef int (OS_PASCALCB *DtlInlineScriptConstructProc)
  473.    (DtlViewId, Up udata, char *parms, DtlGuiId parent,
  474.     int width, DtlGuiId newchild, Up *retdata);
  475.  
  476. typedef void (OS_PASCALCB *DtlInlineScriptResizeProc)
  477.    (DtlViewId, Up udata, char *parms,
  478.     int width, DtlGuiId child, Up retdata);
  479.  
  480. typedef void (OS_PASCALCB *DtlInlineScriptDestroyProc)
  481.    (DtlViewId, Up udata, DtlGuiId child, Up retdata);
  482.  
  483. /*****************************************************************/
  484.  
  485. typedef Up (OS_PASCALCB *DtlAnnotScriptConstructProc)
  486.    (DtlBookId, Up, char *str,
  487.     int, unsigned long, char *, char *, DtlViewId);
  488.  
  489. typedef void (OS_PASCALCB *DtlAnnotScriptRefreshProc)
  490.                 (DtlBookId, Up, unsigned long eid, 
  491.          int, char *);
  492.  
  493. typedef void (OS_PASCALCB *DtlAnnotScriptDestructProc)
  494.                 (DtlBookId, Up, unsigned long eid, int, char *);
  495.  
  496. typedef void (OS_PASCALCB *DtlPropertyValueProc)
  497.    (char buf[], int maxbuf, int argc, char *argv[]);
  498.  
  499. typedef void (OS_PASCALCB *DtlwPropertyValueProc)
  500.    (DtlPropertyValueInfoId id, Up user_data,
  501.     UCSchar16 buf[], int maxbuf, int argc, UCSchar16 *argv[]);
  502.  
  503. typedef void (OS_PASCALCB *DtlMenuItemProc)
  504.    (DtlContextId, DtlMenuItemId, Up user_data);
  505.  
  506. typedef void (OS_PASCALCB *DtlFreeProc) (void* buffer);
  507.  
  508. #else
  509.  
  510. typedef void (OS_PASCALCB *DtlApplicationCallbackProc)();
  511. typedef void (OS_PASCALCB *DtlBookCallbackProc)();
  512. typedef void (OS_PASCALCB *DtlViewCallbackProc)();
  513. typedef void (OS_PASCALCB *DtlTocViewCallbackProc)();
  514. typedef int (OS_PASCALCB *DtlTocViewGeneratorProc)();
  515. typedef void (OS_PASCALCB *DtlRasterCallbackProc)();
  516. typedef void (OS_PASCALCB *DtlGraphicCallbackProc)();
  517. typedef int (OS_PASCALCB *DtlGraphicLoadProc)();
  518. typedef Up (OS_PASCALCB *DtlScriptConstructProc)();
  519. typedef void (OS_PASCALCB *DtlScriptRefreshProc)();
  520. typedef void (OS_PASCALCB *DtlScriptDestructProc)();
  521. typedef int (OS_PASCALCB *DtlInlineScriptConstructProc)();
  522. typedef void (OS_PASCALCB *DtlInlineScriptResizeProc)();
  523. typedef void (OS_PASCALCB *DtlInlineScriptDestroyProc)();
  524. typedef Up (OS_PASCALCB *DtlAnnotScriptConstructProc)();
  525. typedef void (OS_PASCALCB *DtlAnnotScriptRefreshProc)();
  526. typedef void (OS_PASCALCB *DtlAnnotScriptDestructProc)();
  527. typedef void (OS_PASCALCB *DtlPropertyValueProc)();
  528. typedef void (OS_PASCALCB *DtlMenuItemProc)();
  529. typedef void (OS_PASCALCB *DtlFreeProc) ();
  530.  
  531. #endif /* use prototypes */
  532.  
  533.  
  534.  
  535. /** Application Enumerations
  536. Doc:
  537. These are flags passed to DTLnewContext().
  538.    DTL__ABOUT_BOX: Flag specifying that the about box ("splash box")
  539.         should be shown at application startup.
  540.    DTL__FRAME_WINDOW: Flag specifiying that an MDI frame 
  541.         to parent the children in should be created. (ignored on UNIX systems).
  542.    DTL__APP_NO_INITIAL_COLWIN: Flag specifying that the initial Collection
  543.         Window that's typically shown should not be created. (ignored on
  544.         UNIX systems).
  545.    NOTE: All future application-level flags should start with __APP!   
  546. **/
  547.  
  548. enum {
  549.    DTL__ABOUT_BOX = (1L << 0),
  550.    DTL__FRAME_WINDOW = (1L << 1),
  551.    DTL__APP_NO_INITIAL_COLWIN = (1L << 2),
  552.    DTL__APP_PRIVATE_COLORMAP = (1L << 3)
  553. };
  554.  
  555.  
  556. /** Application Callbacks
  557. Doc: See DTLaddApplicationCallback for detailed description
  558.      of each callback type.
  559. **/
  560.  
  561. #define DTL__APPLICATION_ICON_CALLBACK            0
  562. #define DTL__APPLICATION_QUIT_CALLBACK            1
  563. #define DTL__APPLICATION_INPUT_CALLBACK            2
  564. #define DTL__APPLICATION_ERROR_CALLBACK            3
  565. #define DTL__APPLICATION_MENU_CALLBACK            4
  566. #define DTL__APPLICATION_BOOK_OPEN_REQUEST_CALLBACK    5
  567. #define DTL__APPLICATION_OPEN_REQUEST_CALLBACK        \
  568.     DTL__APPLICATION_BOOK_OPEN_REQUEST_CALLBACK
  569. #define DTL__APPLICATION_NOTE_DESTROY_CALLBACK        6
  570. #define DTL__APPLICATION_ANNOT_OPEN_CALLBACK        7
  571. #define DTL__APPLICATION_ANNOT_DELETE_CALLBACK        8
  572. #define DTL__APPLICATION_VIEW_OPEN_CALLBACK        9
  573. #define DTL__APPLICATION_TOC_VIEW_OPEN_CALLBACK     10
  574. #define DTL__APPLICATION_BOOK_OPEN_CALLBACK         11
  575. #define DTL__APPLICATION_SEARCH_CALLBACK         12
  576. #define DTL__APPLICATION_COLLECTION_SEARCH_CALLBACK    13
  577. #define DTL__APPLICATION_LIBRARY_SECURITY_CALLBACK     14
  578. #define DTL__APPLICATION_BOOK_SECURITY_CALLBACK     15
  579. #define DTL__APPLICATION_GRAPHIC_OPEN_CALLBACK         16
  580. #define DTL__APPLICATION_COLWIN_OPEN_CALLBACK         17
  581. #define DTL__APPLICATION_COLWIN_OPEN_REQUEST_CALLBACK    18
  582. #define DTL__APPLICATION_SELECTION_COERCION_CALLBACK    19
  583. #define DTL__APPLICATION_PRINT_PAGE_BREAK_CALLBACK      20
  584. #define DTL__NUMBER_APPLICATION_CALLBACKS               21
  585.  
  586.  
  587.  
  588. /** Print System Datatypes
  589. We specify the datatypes associated with a the Print System:
  590.    DtlPrintId: an identifier for a printing context.
  591.    Print Options: 
  592.       DTL__PRINT_GRAPHICS: should graphics be printed.
  593.       DTL__PRINT_ANNOTS: should annotations be printed.
  594.    
  595. **/
  596.  
  597. enum {
  598.    DTL__PRINT_GRAPHICS = (1L << 0),
  599.    DTL__PRINT_ANNOTS = (1L << 1),
  600.    DTL__PRINT_NODIALOG = (1L << 2)
  601. };
  602.  
  603. typedef struct _DtlPrint * DtlPrintId;
  604.  
  605. /** Book Datatypes
  606. We specify the datatypes associated with a DTL book:
  607.  
  608.    DTL__ROOT_ELEMENT: element id of the root of a book
  609.    DTL__NULL_ELEMENT: element id signifying no element
  610.    DTL__CDATA: cdata string
  611.    DTL__SHOW_TOC: create a book with a toc
  612.    DTL__SHOW_VIEW: create a book with a fulltext view
  613.    DTL__SHOW_MULTIVIEW: create a book with a multiview fulltext/toc view
  614.    DTL__ELEMENT_SEPARATOR: tag name separator
  615.  
  616. DTL__ACCESS_PUBLIC: public annotation access
  617. DTL__ACCESS_PRIVATE: private annotation access
  618.  
  619. DtlAnnotStruct:
  620.    This record structure holds all information about a given annotation.
  621.       title: name of annotation
  622.       annot_type: type of annotation, such as "Note", "Bookmark"
  623.                   or what you pass to DTLaddAnnotScript().
  624.       owner: owner of annotation
  625.       access: access, DTL__ANNOT_ACCESS_PUBLIC or DTL__ANNOT_ACCESS_PRIVATE
  626.       timestamp: time in universal time when annotation was created
  627.       script: script to run to launch annot
  628.       paramters: paramaters to send to script
  629. **/
  630.  
  631.  
  632. enum {
  633.    DTL__ACCESS_PRIVATE = 0,
  634.    DTL__ACCESS_PUBLIC,
  635.    DTL__ACCESS_ALL
  636. };
  637.  
  638. #define DTL__ROOT_ELEMENT    1L
  639. #define DTL__NULL_ELEMENT    0L
  640. #define DTL__CDATA        "#CDATA"
  641. #define DTL__ELEMENT_SEPARATOR  ','
  642.  
  643. typedef struct _DtlAnnotStruct {
  644.    char *title;
  645.    char *annot_type;
  646.    char *owner;
  647.    char *script;
  648.    char *parameters;
  649.    long timestamp;
  650.    int    access;
  651. } DtlAnnotStruct;
  652.  
  653.  
  654. /** DTL Window Type
  655. For use in DTLmenu package, for now.
  656. **/
  657.  
  658. typedef enum {
  659.    DTL__WINDOW_TYPE_UNKNOWN = 0,
  660.    DTL__WINDOW_TYPE_VIEW,
  661.    DTL__WINDOW_TYPE_GRAPHIC,
  662.    DTL__WINDOW_TYPE_COLWIN
  663. }  DtlWindowType;
  664.  
  665. /** DTLmenu flags
  666. Specifies info about a DtlMenuItem.
  667.  
  668. Example:
  669.    (How to add a new checkable menuitem with the separator after to the view menu)
  670.    
  671.    DtlMenuItemFlags flags;                                           ****************
  672.    flags=(DTL__MENU_ITEM_CHECKABLE | DTL__MENU_ITEM_SEPARATOR_AFTER) + DTL__VIEW_MENU;
  673.                                                                      ****************
  674.                                                                      
  675.    (Note that the "+ DTL__VIEW_MENU" is new to Dynatext 3.0)
  676. **/
  677.  
  678. enum {
  679.    DTL__MENU_ITEM_DEFAULT = 0L,
  680.    DTL__MENU_ITEM_CHECKABLE = ( 1L << 0 ),
  681.    DTL__MENU_ITEM_SEPARATOR_BEFORE = ( 1L << 1 ),
  682.    DTL__MENU_ITEM_SEPARATOR_AFTER = ( 1L << 2 ),
  683.  
  684.    /* --------------------------------- */
  685.    /* --- Dynatext 3.0 new settings --- */
  686.    /* --------------------------------- */
  687.    DTL__FILE_MENU                      = (1 << 16),   /* "file" */
  688.    DTL__EDIT_MENU                      = (2 << 16),   /* "edit" */
  689.    DTL__SEARCH_MENU                    = (3 << 16),   /* "search" */
  690.    DTL__BOOK_MENU                      = (4 << 16),   /* "book" */
  691.    DTL__JOURNAL_MENU                   = (5 << 16),   /* "journal" */
  692.    DTL__VIEW_MENU                      = (6 << 16),   /* "view" */
  693.    
  694.    /* Windows & Mac only... */
  695.    DTL__WINDOW_MENU                    = (7 << 16), 
  696.    
  697.    DTL__HELP_MENU                      = (8 << 16),   /* "help" */
  698.   
  699.    /* Windows only... (reserved 9 & 10) */
  700.    
  701.    /* Unix only...    (reserved 11 & 12) */
  702.    DTL__OPTIONS_MENU                   = (11 << 16),   /* "options" */
  703.    
  704.    /* Mac only...    (reserved 13 & 14) */
  705.    
  706.    /* All platforms. (reserved 15) */
  707.    
  708.    /* --------------------------------- */
  709.    /* ----------- Submenus ------------ */
  710.    /* --------------------------------- */
  711.    
  712.    DTL__VIEW_TOC_MENU                  = (16 << 16),   /* "toc-view" */
  713.    DTL__VIEW_CONTENT_MENU              = (17 << 16),   /* "ft-view" */
  714.    DTL__VIEW_ZOOM_MENU                 = (18 << 16),   /* "zoom-main" */
  715.    DTL__VIEW_EXPAND_TOC_TO_MENU        = (19 << 16)    /* "expand-toc" */
  716. };
  717. typedef long DtlMenuItemFlags;
  718.  
  719.  
  720. /** Book Callbacks
  721. See DTLaddBookCallback for more information on each callback type.
  722. **/
  723.  
  724. enum {
  725.    DTL__BOOK_DESTROY_CALLBACK,
  726.    DTL__BOOK_TOC_CALLBACK,
  727.    DTL__BOOK_ANNOTS_LOADED_CALLBACK,
  728.    DTL__NUMBER_BOOK_CALLBACKS
  729. };
  730.  
  731.  
  732. /** Book Creation Flags
  733. DTL__SHOW_TOC: show a toc when book is created.
  734. DTL__SHOW_VIEW: show fulltext view when book is created.
  735. DTL__SHOW_MULTIVIEW: show both when view is created.
  736. DTL__BACKGROUND_ANNOTS: load annotations in background.
  737. DTL__DISABLE_ANNOTS: completely disable annotations.
  738. **/
  739.  
  740. enum {
  741.    DTL__SHOW_TOC          = (1L << 0),
  742.    DTL__SHOW_VIEW         = (1L << 1),
  743.    DTL__BACKGROUND_ANNOTS = (1L << 2),
  744.    DTL__DISABLE_ANNOTS    = (1L << 3)
  745. };
  746.  
  747. #define DTL__SHOW_MULTIVIEW  (DTL__SHOW_TOC | DTL__SHOW_VIEW)
  748.  
  749. /** Toc View Datatypes
  750. DTL__TOC_MODE_NORMAL: normal action in toc, drives fulltext view.
  751. DTL__TOC_MODE_SELECT: select items for actions like printing,
  752.                       does not drive fulltext view.
  753. **/
  754.  
  755. enum {
  756.    DTL__TOC_MODE_NORMAL,
  757.    DTL__TOC_MODE_SELECT
  758. };
  759.  
  760. /** Toc View Modes
  761.   DTL__TOCVIEW_SORT - sort toc entries
  762.   DTL__TOCVIEW_ELIDE - elide toc (remove certain Toc entries)
  763. **/
  764.  
  765. enum {
  766.    DTL__TOCVIEW_SORT,
  767.    DTL__TOCVIEW_ELIDE
  768. };
  769.  
  770. /** Toc View Sorting Mode methods
  771.   DTL__TOCVIEW_SORT_HITS - Sort entries with most query hits first
  772.   DTL__TOCVIEW_SORT_NONE - Do not sort entries.
  773. **/
  774.  
  775. enum {
  776.    DTL__TOCVIEW_SORT_HITS,
  777.    DTL__TOCVIEW_SORT_NONE
  778. };
  779.  
  780. /** Toc View Elision Mode methods
  781.   DTL__TOCVIEW_ELIDE_HITS - Remove TOC entries with no query hits
  782.   DTL__TOCVIEW_ELIDE_NONE - Do not remove any TOC entries.
  783. **/
  784.  
  785. enum {
  786.    DTL__TOCVIEW_ELIDE_HITS,
  787.    DTL__TOCVIEW_ELIDE_NONE
  788. };
  789.  
  790. /** Toc View Callbacks
  791. DTL__TOC_VIEW_DESTROY_CALLBACK: 
  792. DTL__TOC_VIEW_INPUT_CALLBACK: 
  793. See DTLaddTocViewCallback() for further information.
  794. **/
  795.  
  796. enum {
  797.    DTL__TOC_VIEW_DESTROY_CALLBACK,
  798.    DTL__TOC_VIEW_INPUT_CALLBACK,
  799.    DTL__TOC_VIEW_RESIZE_CALLBACK,
  800.    DTL__NUMBER_TOC_VIEW_CALLBACKS
  801. };
  802.  
  803.  
  804. /** Query Datatypes
  805. We specify the datatypes associated with a DTL Query:
  806.    DtlQueryId: id for a query.
  807.  
  808.    DTL__FULL_FEEDBACK: provide number of occurences in toc.
  809.    DTL__RELEVANCE_FEEDBACK: provide relevance (log) function in toc.
  810.    DTL__BINARY_FEEDBACK: provide yes/no in toc.
  811.  
  812.    DTL__QUERY_MERGE_INSIDE: merge query 1 inside query 2 in call
  813.                             to DTLmergeQueries().
  814.    DTL__QUERY_MERGE_NOT_INSIDE: merge query 1 not inside query 2 in
  815.                                 call to DTLmergeQueries().
  816.    DTL__QUERY_MERGE_CONTAINING: merge query 1 containing query 2.
  817.    DTL__QUERY_MERGE_NOT_CONTAINING: merge query 1 not containing query 2.
  818.    DTL__QUERY_MERGE_OR: merge query 1 or query 2.
  819.    DTL__QUERY_MERGE_AND: merge query 1 and query 2.
  820. **/
  821.  
  822. typedef struct _DtlQuery * DtlQueryId;
  823.  
  824. enum {
  825.    DTL__FULL_FEEDBACK,
  826.    DTL__RELEVANCE_FEEDBACK,
  827.    DTL__BINARY_FEEDBACK
  828. };
  829.  
  830. enum {
  831.    DTL__QUERY_MERGE_INSIDE,
  832.    DTL__QUERY_MERGE_NOT_INSIDE,
  833.    DTL__QUERY_MERGE_CONTAINING,
  834.    DTL__QUERY_MERGE_NOT_CONTAINING,
  835.    DTL__QUERY_MERGE_OR,
  836.    DTL__QUERY_MERGE_AND
  837. };
  838.  
  839.  
  840.  
  841. /** Lib Query Datatypes
  842. We specify the datatypes associated with a DTL Library Level Query:
  843.    DtlLibQueryId: id for a query.
  844.    DTL__LIB_QUERY_INCLUDE_CONTEXT: does library query with inside allowed.
  845.    DTL__LIB_QUERY_ROBUST_SEARCH: does a full query even if it involves
  846.                                  more time to open actualy book indices.
  847. **/
  848.  
  849. enum {
  850.    DTL__LIB_QUERY_INCLUDE_CONTEXT = (1L << 0),
  851.    DTL__LIB_QUERY_ROBUST_SEARCH = (1L << 1)
  852. };
  853.  
  854. typedef struct _DtlLibQuery * DtlLibQueryId;
  855.  
  856.  
  857. /** Hist Datatypes
  858. We specify the datatypes associated with a DTL Hist:
  859.    DtlHistoryId: id for a history.
  860. **/
  861.  
  862. typedef struct _DtlHistory * DtlHistoryId;
  863.  
  864.  
  865.  
  866. /** DtlView Enums
  867.    DTL__SHOW_HEADER: specifies that a view should have an EBT header.
  868.    DTL__SHOW_LOGO: specifies that a view should have an EBT logo.
  869.                    must have header to have a logo. (phasing out)
  870.    DTL__SHOW_LOOKUP: shows the search gadgets          
  871.    DTL__MULTI_VIEW: specifies that a view should have both a TOC and
  872.                     a fulltext view.
  873.    DTL__STANDALONE_VIEW: specifies that book is closed when this
  874.                          is the last view to close and there is no toc.
  875.    DTL__GLOSSARY_VIEW: specifies that view is closed when focus is lost
  876.    DTL__REVELATORY_VIEW: view is a revelatory, and we should 
  877.                          unhide the root element from the style sheet.
  878.    DTL__HSCROLL_VIEW: view is a table, try to horizontal scroll.
  879.    DTL__KEEP_STACK: specifies that a view should keep a history stack.    
  880.                     if DTL__SHOW_HEADER is on, this is automatic.
  881.    DTL__DISABLE_SGML_EXPORT: specifies that all SGML related items should
  882.                     be disabled in the multi-view: Copy SGML, Show Tags,
  883.                     Exporting of SGML titles or content.
  884.      (Windows Only option)
  885.    DTL__HIDE_TABS: Do not show the Stylesheet Tabs (Default is ON)
  886.  
  887. **/
  888.  
  889.  
  890. enum {
  891.    DTL__SHOW_HEADER = (1L << 0),
  892.    DTL__SHOW_LOGO = (1L << 1),   /* PHASING OUT AFTER 2.0 */
  893.    DTL__KEEP_STACK = (1L << 2),
  894.    DTL__STANDALONE_VIEW = (1L << 3),
  895.    DTL__GLOSSARY_VIEW = (1L << 4),
  896.    DTL__MULTI_VIEW = (1L << 5),
  897.    DTL__SHOW_LOOKUP = (1L << 6),
  898.    DTL__REVELATORY_VIEW = (1L << 7),
  899.    DTL__HSCROLL_VIEW = (1L << 8),
  900.    DTL__CHUNKY_VIEW = (1L << 9),
  901.    DTL__DISABLE_SGML_EXPORT = (1L << 10),
  902.    DTL__HIDE_TABS = (1L << 11)
  903.       /* private starts at 12 */
  904. };
  905.  
  906. /** Dtl View Modes
  907.    DTL__VIEW_MODE_NORMAL: normal view and selecting
  908.    DTL__VIEW_MODE_NO_SELECT: turn off user selection
  909.    DTL__VIEW_MODE_SINGLE_HIT: enable single-hit query feedback
  910.    DTL__VIEW_MODE_MULTIPLE_HITS: enable multiple-hit query feedback
  911. **/
  912.  
  913. enum {
  914.    DTL__VIEW_MODE_NORMAL,
  915.    DTL__VIEW_MODE_NO_SELECT,
  916.    DTL__VIEW_MODE_SINGLE_HIT,
  917.    DTL__VIEW_MODE_MULTIPLE_HITS
  918. };
  919.  
  920. /** DtlView Callbacks
  921. See DTLaddViewCallback() for further explanation.
  922. **/
  923.  
  924. enum {
  925.    DTL__VIEW_DESTROY_CALLBACK,
  926.    DTL__VIEW_SCROLL_CALLBACK,
  927.    DTL__VIEW_RESIZE_CALLBACK,
  928.     DTL__VIEW_HSCROLL_CALLBACK,
  929.     DTL__VIEW_SELECTION_CALLBACK,
  930.    DTL__VIEW_PAINT_COMPLETE_CALLBACK,
  931.    DTL__NUMBER_VIEW_CALLBACKS
  932. };
  933.  
  934.  
  935. /** DtlView Datatypes
  936.  The DtlViewComponent Types: Allows caller to access platform-
  937.  specific handle to the pieces of a DtlViewId. See
  938.  DTLinqViewComponent() for further explanation.
  939.  
  940.    DTL__VIEW_CONTAINER_COMP: Top-level window handle (to the view itself)
  941.    DTL__VIEW_SPLITPANE_COMP: Handle to splitpane (contains Fulltext and
  942.      Toc).
  943.    DTL__VIEW_SRCHPANEL_COMP: Handle to search panel.
  944.    DTL__VIEW_TOC_COMP: Handle to TOC pane in splitpane. 
  945.    DTL__VIEW_FULLTEXT_COMP: Handle to Fulltext pane in splitpane.
  946.    DTL__VIEW_MENUBAR_COMP: Handle to menubar of window (UNIX only).
  947.  
  948.  The DtlViewLayout structure holds information about a given view's
  949.  layout.  For each field, an "ignore" value can be set.  This allows
  950.  you selectively change attributes of a view, while leaving other
  951.  attributes unchanged. Fields:
  952.  
  953.  .tocPosition: the position of the TOC in the splitpane portion of
  954.      the DtlView.  If the DltView has no TOC, this value is ignored.
  955.      This value implicitly controls whether the splitbar is horizatal or
  956.      vertical. When the TOC is positioned TOP or BOTTOM, the splitbar appears
  957.      horizontal; when positioned LEFT or RIGHT, the splitbar appears
  958.      vertical.
  959.      > NOTE: On UNIX, only TOP and LEFT are supported. 
  960.  .srchPanel: whether or not the search panel is shown.  If the view has
  961.      not yet been mapped, this value will take effect when mapped.  If
  962.      the view is mapped, the search panel visibility will immediately toggle. 
  963.  .barType: thickness of the splitbar in View's splitpane.
  964.      > NOTE: This field is ignored on UNIX (& Mac?)
  965.  .barPosition: position of splitbar in the View's splitpane, based on
  966.      the percent size of the TOC.  Values range from 0 to 100.   
  967.      * 0 means position the splitbar all the way to one side, showing
  968.        only the Fulltext view.  The user can manually slide the split
  969.        bar to reveal the TOC.
  970.      * 100 means position the splitbar all the way to one side, showing
  971.        only the TOC.
  972.      * DTL__VIEW_BARPOS_IGNORE means leave the current splitbar position.
  973.      * DTL__VIEW_BARPOS_DEFAULT means allow DTL to place the splitbar.
  974.        The default division is approx. 40% toc to 60% fulltext.
  975. **/
  976.  
  977. typedef enum {
  978.    DTL__VIEW_CONTAINER_COMP,   /* top-level window handle */
  979.    DTL__VIEW_SPLITPANE_COMP,   /* handle to splitpane */
  980.    DTL__VIEW_SRCHPANEL_COMP,   /* handle to search panel */
  981.    DTL__VIEW_TOC_COMP,         /* handle to toc portion of splitpane */
  982.    DTL__VIEW_FULLTEXT_COMP,    /* handle to fulltext portion of splitpane */
  983.    DTL__VIEW_MENUBAR_COMP      /* handle to menubar (UNIX only) */
  984. } DtlViewComponent;
  985.  
  986. typedef enum {
  987.   DTL__VIEW_TOCPOS_IGNORE,      /* leave currrent setting; use default */
  988.   DTL__VIEW_TOCPOS_TOP,         /* place toc on top (horiz splitbar)  */ 
  989.   DTL__VIEW_TOCPOS_BOTTOM,      /* place toc on bottom (horiz splitbar) */
  990.   DTL__VIEW_TOCPOS_LEFT,        /* place toc on left (vert splitbar)  */ 
  991.   DTL__VIEW_TOCPOS_RIGHT        /* place toc on right (vert splitbar) */
  992. } DtlViewTocPos;
  993.  
  994. typedef enum {
  995.   DTL__VIEW_SRCHPANEL_IGNORE,   /* leave current setting; use default */
  996.   DTL__VIEW_SRCHPANEL_SHOW,     /* show the search panel */
  997.   DTL__VIEW_SRCHPANEL_HIDE      /* hide the search panel */
  998. } DtlSrchPanelState;
  999.  
  1000. typedef enum {
  1001.   DTL__VIEW_SPLITBAR_IGNORE,    /* leave current setting; use default */
  1002.   DTL__VIEW_SPLITBAR_NORMAL,    /* normal (thin) splitbar */
  1003.   DTL__VIEW_SPLITBAR_WIDE       /* thick splitbar */
  1004. } DtlViewSplitbarType;
  1005.  
  1006. #define DTL__VIEW_BARPOS_IGNORE    -1 /* leave current setting */
  1007. #define DTL__VIEW_BARPOS_DEFAULT   -2 /* use DTL default; split window 
  1008.                                          approx: TOC (40%) : Fulltext (60%) */
  1009.  
  1010. typedef struct _DtlViewLayout { 
  1011.    DtlViewTocPos       tocPosition;
  1012.    DtlSrchPanelState   srchPanel; 
  1013.    DtlViewSplitbarType barType;
  1014.    int                 barPosition;
  1015. } DtlViewLayout;
  1016.  
  1017.  
  1018. /** DtlElemGeom
  1019. DtlElemGeom: Structure used to pass around element geometries.
  1020. **/
  1021.  
  1022. typedef struct _DtlElemGeom {
  1023.    unsigned long eid;
  1024.    int    x, y, w, h;
  1025. } DtlElemGeom;
  1026.  
  1027.  
  1028. /** Graphic Callbacks
  1029. See DTLaddGraphicCallback for further information.
  1030. **/
  1031.  
  1032. enum {
  1033.    DTL__GRAPHIC_DESTROY_CALLBACK,
  1034.    DTL__GRAPHIC_BUTTON_PRESS_CALLBACK,
  1035.    DTL__GRAPHIC_REGION_CALLBACK,
  1036.    DTL__NUMBER_GRAPHIC_CALLBACKS
  1037. };
  1038.  
  1039.  
  1040. /** Graphic Formats
  1041. DTL__GRAPHIC_FORMAT_RASTER: A raster graphic.
  1042. DTL__GRAPHIC_FORMAT_CGM: A cgm graphic.
  1043. DTL__GRAPHIC_FORMAT_GRAPHIC: A cgm OR raster graphic.
  1044. DTL__GRAPHIC_FORMAT_VIDEO: Unsupported at this time.
  1045. **/
  1046.  
  1047. enum {
  1048.    DTL__GRAPHIC_FORMAT_RASTER,
  1049.    DTL__GRAPHIC_FORMAT_CGM,
  1050.    DTL__GRAPHIC_FORMAT_VIDEO,
  1051.     DTL__GRAPHIC_FORMAT_GRAPHIC
  1052. };
  1053.  
  1054.  
  1055. /** Raster Datatypes
  1056. Rasters are just here for backward compatibility.
  1057. Will be replaced by graphics post 2.0.
  1058. **/
  1059.  
  1060. enum {
  1061.    DTL__RASTER_DESTROY_CALLBACK = DTL__GRAPHIC_DESTROY_CALLBACK,
  1062.    DTL__RASTER_BUTTON_PRESS_CALLBACK = DTL__GRAPHIC_BUTTON_PRESS_CALLBACK,
  1063.    DTL__NUMBER_RASTER_CALLBACKS
  1064. };
  1065.  
  1066.  
  1067. /** Database Node Info Types
  1068. For determining the type of information contained in a node.
  1069. **/
  1070. #define DTL__EMPTY_NODE  (DTL__ERROR + 1)
  1071. #define DTL__NORMAL_NODE (DTL__ERROR + 2)
  1072. #define DTL__NDATA_NODE  (DTL__ERROR + 3)
  1073. #define DTL__SDATA_NODE  (DTL__ERROR + 4)
  1074. #define DTL__CDATA_NODE  (DTL__ERROR + 5)
  1075.  
  1076. /** C++ Support and C Support
  1077. **/
  1078.  
  1079. #ifdef __cplusplus
  1080. extern "C" {
  1081. #endif /* __cplusplus */
  1082.  
  1083.  
  1084. /** Application Context Prototypes
  1085. We specify the application context functions available.
  1086. **/
  1087.  
  1088. /*** amain.cc ***/
  1089. extern 
  1090. DTL_EXPORT
  1091. void
  1092. OS_PASCAL
  1093. DTLhook(
  1094. #ifdef use_prototypes
  1095. DtlContextId    id,
  1096. long    key,
  1097. long    op
  1098. #endif
  1099. );
  1100.  
  1101. /*** Main Routines ***/
  1102. extern
  1103. DTL_EXPORT
  1104. DtlContextId
  1105. OS_PASCAL
  1106. DTLnewContext(
  1107. #ifdef use_prototypes
  1108. int    *argc,
  1109. char    *argv[],
  1110. OS_CONST char     *data_dir, 
  1111. OS_CONST char    *x_dir,
  1112. OS_CONST char    *private_dir,
  1113. OS_CONST char    *public_dir,
  1114. OS_CONST char    *auth_service,
  1115. long     flags
  1116. #endif
  1117. );
  1118.  
  1119. extern
  1120. DTL_EXPORT
  1121. DtlContextId
  1122. OS_PASCAL
  1123. DTLnewContextFromGUI(
  1124. #ifdef use_prototypes
  1125. OS_CONST char    *name,
  1126. OS_CONST char    *classname,
  1127. OS_CONST char     *data_dir, 
  1128. OS_CONST char    *private_dir,
  1129. OS_CONST char    *public_dir,
  1130. OS_CONST char    *auth_service,
  1131. long     flags,
  1132. DtlGuiId    gui
  1133. #endif
  1134. );
  1135.  
  1136. extern
  1137. DTL_EXPORT
  1138. DtlGuiId    
  1139. OS_PASCAL
  1140. DTLinqGUI(
  1141. #ifdef use_prototypes
  1142. DtlContextId    id
  1143. #endif
  1144. );
  1145.  
  1146. /* PHASING OUT AFTER 2.0 */
  1147. #ifdef DTL__X_DEFS
  1148. extern
  1149. DTL_EXPORT
  1150. DtlContextId
  1151. OS_PASCAL
  1152. DTLnewContextFromX(
  1153. #ifdef use_prototypes
  1154. char    *name,
  1155. char    *classname,
  1156. char     *data_dir, 
  1157. char    *private_dir,
  1158. char    *public_dir,
  1159. char    *auth_service,
  1160. long     flags,
  1161. Display    *display,
  1162. XtAppContext    context
  1163. #endif
  1164. );
  1165.  
  1166. #endif /* DTL__X_DEFS */
  1167.  
  1168.  
  1169.  
  1170. #ifdef DTL__WINDOWS_DEFS
  1171.  
  1172. /* PHASING OUT AFTER 2.0 */
  1173. extern
  1174. DTL_EXPORT
  1175. DtlContextId
  1176. OS_PASCAL
  1177. DTLnewContextFromWindows(
  1178. #ifdef use_prototypes
  1179. HANDLE     hInstance,
  1180. HANDLE     hPrevInstance,
  1181. LPSTR     lpszCmdParam,
  1182. int     nCmdShow,
  1183. char     *data_dir, 
  1184. char    *private_dir,
  1185. char    *public_dir,
  1186. char    *auth_service,
  1187. long     flags        
  1188. #endif
  1189. );
  1190. #endif /* DTL__WINDOWS_DEFS */
  1191.  
  1192.  
  1193.  
  1194. extern
  1195. DTL_EXPORT
  1196. char *
  1197. OS_PASCAL
  1198. DTLinqVersion(
  1199. #ifdef use_prototypes
  1200. DtlContextId    id
  1201. #endif
  1202. );
  1203.  
  1204. extern
  1205. DTL_EXPORT
  1206. int
  1207. OS_PASCAL
  1208. DTLcheckLibraryVersion(
  1209. #ifdef use_prototypes
  1210. int  major_version,
  1211. int  minor_version
  1212. #endif
  1213. );
  1214.  
  1215. extern
  1216. DTL_EXPORT
  1217. int
  1218. OS_PASCAL
  1219. DTLinqLibraryVersion(
  1220. #ifdef use_prototypes
  1221. int  *major_version,
  1222. int  *minor_version
  1223. #endif
  1224. );
  1225.  
  1226. extern
  1227. DTL_EXPORT
  1228. void
  1229. OS_PASCAL
  1230. DTLdestroyContext(
  1231. #ifdef use_prototypes
  1232. DtlContextId    id
  1233. #endif
  1234. );
  1235.  
  1236.  
  1237. /*** Error Routines ***/
  1238.  
  1239. extern
  1240. DTL_EXPORT
  1241. int
  1242. OS_PASCAL
  1243. DTLgetError(
  1244. #ifdef use_prototypes
  1245. DtlContextId    id
  1246. #endif
  1247. );
  1248.  
  1249. extern 
  1250. DTL_EXPORT
  1251. void
  1252. OS_CDECL
  1253. DTLerrorBox(
  1254. #ifdef use_prototypes
  1255. DtlContextId id,
  1256. int eid,
  1257. ...
  1258. #endif
  1259. );
  1260.  
  1261. extern
  1262. DTL_EXPORT
  1263. int
  1264. OS_PASCAL
  1265. DTLsetErrCallback(
  1266. #ifdef use_prototypes
  1267. DtlContextId id,
  1268. DtlApplicationCallbackProc callback,
  1269. Up user_data
  1270. #endif
  1271. );
  1272.  
  1273.  
  1274. /*** Collection Window Routines ***/
  1275.  
  1276. extern 
  1277. DTL_EXPORT
  1278. DtlColWinId
  1279. OS_PASCAL
  1280. DTLinqDefaultColWin(
  1281. #ifdef use_prototypes
  1282.     DtlContextId contextId
  1283. #endif
  1284. );
  1285.  
  1286. extern
  1287. DTL_EXPORT
  1288. int
  1289. OS_PASCAL
  1290. DTLupdateColWin(
  1291. #ifdef use_prototypes
  1292.     DtlColWinId    colWinId, 
  1293.     char *        collection
  1294. #endif
  1295. );
  1296.  
  1297.  
  1298. extern
  1299. DTL_EXPORT
  1300. int
  1301. OS_PASCAL
  1302. DTLinqActiveCols(
  1303. #ifdef use_prototypes
  1304.     DtlColWinId colWinId, 
  1305.     char *        buf,
  1306.     int             buf_size,
  1307.     int *            bytes_written,
  1308.     int *            num_collections
  1309. #endif
  1310. );
  1311.  
  1312.  
  1313. extern
  1314. DTL_EXPORT
  1315. int
  1316. OS_PASCAL
  1317. DTLinqCurrentBook(
  1318. #ifdef use_prototypes
  1319. DtlColWinId     colWinId, 
  1320.     char *        pathbuf,
  1321.     int             pathbuf_size,
  1322.     int *            pathbuf_bytes_written,
  1323.     char *        aliasbuf,
  1324.     int             aliasbuf_size,
  1325.     int *            aliasbuf_bytes_written
  1326. #endif
  1327. );
  1328.  
  1329. extern
  1330. DTL_EXPORT
  1331. int
  1332. OS_PASCAL
  1333. DTLinqColAlias(
  1334. #ifdef use_prototypes
  1335. DtlColWinId     colWinId, 
  1336.     char *        collection,
  1337.     char *        buf, 
  1338.     int            buf_size,
  1339.     int *            bytes_written
  1340. #endif
  1341. );
  1342.  
  1343.  
  1344. extern
  1345. DTL_EXPORT
  1346. int
  1347. OS_PASCAL
  1348. DTLperformColWinQuery(
  1349. #ifdef use_prototypes
  1350.    DtlColWinId cwid,
  1351.    const char *queryString
  1352. #endif
  1353. );
  1354.  
  1355.  
  1356.  
  1357. /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1358.               Iterator Functions
  1359.  *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
  1360.  
  1361. /*
  1362.  * colwin iterator
  1363.  */ 
  1364.  
  1365. extern
  1366. DTL_EXPORT
  1367. DtlColWinSeqId
  1368. OS_PASCAL
  1369. DTLstartColWinSequence(
  1370. #ifdef use_prototypes
  1371.     DtlContextId    contextId
  1372. #endif
  1373. );
  1374.  
  1375.  
  1376. extern 
  1377. DTL_EXPORT
  1378. DtlColWinId
  1379. OS_PASCAL
  1380. DTLnextColWinSequence(
  1381. #ifdef use_prototypes
  1382.     DtlColWinSeqId colWinSeqId
  1383. #endif
  1384. );
  1385.  
  1386.  
  1387. extern 
  1388. DTL_EXPORT
  1389. void
  1390. OS_PASCAL
  1391. DTLdestroyColWinSequence(
  1392. #ifdef use_prototypes
  1393.     DtlColWinSeqId colWinSeqId
  1394. #endif
  1395. );
  1396.  
  1397. /*
  1398.  * book iterator
  1399.  */ 
  1400.  
  1401. extern 
  1402. DTL_EXPORT
  1403. DtlBookSeqId
  1404. OS_PASCAL
  1405. DTLstartBookSequence(
  1406. #ifdef use_prototypes
  1407.     DtlContextId    contextId
  1408. #endif
  1409. );
  1410.  
  1411.  
  1412. extern 
  1413. DTL_EXPORT
  1414. DtlBookId
  1415. OS_PASCAL
  1416. DTLnextBookSequence(
  1417. #ifdef use_prototypes
  1418.     DtlBookSeqId bookSeqId
  1419. #endif
  1420. );
  1421.  
  1422.  
  1423. extern 
  1424. DTL_EXPORT
  1425. void
  1426. OS_PASCAL
  1427. DTLdestroyBookSequence(
  1428. #ifdef use_prototypes
  1429.     DtlBookSeqId bookSeqId
  1430. #endif
  1431. );
  1432.  
  1433. /*
  1434.  * view iterator
  1435.  */ 
  1436.  
  1437. extern 
  1438. DTL_EXPORT
  1439. DtlViewSeqId
  1440. OS_PASCAL
  1441. DTLstartViewSequence(
  1442. #ifdef use_prototypes
  1443.     DtlBookId bookId
  1444. #endif
  1445. );
  1446.  
  1447.  
  1448. extern 
  1449. DTL_EXPORT
  1450. DtlViewId
  1451. OS_PASCAL
  1452. DTLnextViewSequence(
  1453. #ifdef use_prototypes
  1454.     DtlViewSeqId viewSeqId
  1455. #endif
  1456. );
  1457.  
  1458.  
  1459. extern 
  1460. DTL_EXPORT
  1461. void
  1462. OS_PASCAL
  1463. DTLdestroyViewSequence(
  1464. #ifdef use_prototypes
  1465.     DtlViewSeqId viewSeqId
  1466. #endif
  1467. );
  1468.  
  1469. /*
  1470.  * tocView iterator
  1471.  */ 
  1472.  
  1473. extern 
  1474. DTL_EXPORT
  1475. DtlTocViewSeqId
  1476. OS_PASCAL
  1477. DTLstartTocViewSequence(
  1478. #ifdef use_prototypes
  1479.     DtlBookId bookId
  1480. #endif
  1481. );
  1482.  
  1483.  
  1484. extern 
  1485. DTL_EXPORT
  1486. DtlTocViewId
  1487. OS_PASCAL
  1488. DTLnextTocViewSequence(
  1489. #ifdef use_prototypes
  1490.     DtlTocViewSeqId tocViewSeqId
  1491. #endif
  1492. );
  1493.  
  1494.  
  1495. extern 
  1496. DTL_EXPORT
  1497. void
  1498. OS_PASCAL
  1499. DTLdestroyTocViewSequence(
  1500. #ifdef use_prototypes
  1501.     DtlTocViewSeqId tocViewSeqId
  1502. #endif
  1503. );
  1504.  
  1505.  
  1506.  
  1507. /*** Option Routines ***/
  1508.  
  1509. extern
  1510. DTL_EXPORT
  1511. void
  1512. OS_PASCAL
  1513. DTLsetOption(
  1514. #ifdef use_prototypes
  1515. DtlContextId    id,
  1516. int    option,
  1517. Up    value
  1518. #endif
  1519. );
  1520.  
  1521. extern
  1522. DTL_EXPORT
  1523. Up
  1524. OS_PASCAL
  1525. DTLgetOption(
  1526. #ifdef use_prototypes
  1527. DtlContextId    id,
  1528. int    option
  1529. #endif
  1530. );
  1531.  
  1532. extern
  1533. DTL_EXPORT
  1534. int
  1535. OS_PASCAL
  1536. DTLreadOption(
  1537. #ifdef use_prototypes
  1538. DtlContextId id, 
  1539. char *fname, 
  1540. char *var,
  1541. char *name, 
  1542. char buf[], 
  1543. int maxbuf
  1544. #endif
  1545. );
  1546.  
  1547. extern 
  1548. DTL_EXPORT
  1549. int
  1550. OS_PASCAL
  1551. DTLsetVariable(
  1552. #ifdef use_prototypes
  1553. OS_CONST char *variable, 
  1554. OS_CONST char *value
  1555. #endif
  1556. );
  1557.  
  1558. extern
  1559. DTL_EXPORT
  1560. char*
  1561. OS_PASCAL
  1562. DTLgetVariable(
  1563. #ifdef use_prototypes
  1564. OS_CONST char *variable
  1565. #endif
  1566. );
  1567.  
  1568.  
  1569. /*** Interface Routines ***/
  1570. extern
  1571. DTL_EXPORT
  1572. int
  1573. OS_PASCAL
  1574. DTLcreateMainWindow(
  1575. #ifdef use_prototypes
  1576. DtlContextId    id,
  1577. char    *name,
  1578. char    *title,
  1579. char    *book_dbases,
  1580. DtlApplicationCallbackProc    quit_callback,
  1581. Up    user_data
  1582. #endif
  1583. );
  1584.  
  1585. extern
  1586. DTL_EXPORT
  1587. void
  1588. OS_PASCAL
  1589. DTLsetBookDatabases(
  1590. #ifdef use_prototypes
  1591. DtlContextId    id,
  1592. char    *book_dbases
  1593. #endif
  1594. );
  1595.  
  1596. extern
  1597. DTL_EXPORT
  1598. char *
  1599. OS_PASCAL
  1600. DTLinqBookDatabases(
  1601. #ifdef use_prototypes
  1602. DtlContextId    contextId
  1603. #endif
  1604. );
  1605.  
  1606. extern
  1607. DTL_EXPORT
  1608. void
  1609. OS_PASCAL
  1610. DTLsetBookKeys(
  1611. #ifdef use_prototypes
  1612. DtlContextId    id,
  1613. char    *collection_keys,
  1614. char    *book_keys
  1615. #endif
  1616. );
  1617.  
  1618. extern
  1619. DTL_EXPORT
  1620. int
  1621. OS_PASCAL
  1622. DTLmapMainWindow(
  1623. #ifdef use_prototypes
  1624. DtlContextId    id
  1625. #endif
  1626. );
  1627.  
  1628. extern
  1629. DTL_EXPORT
  1630. int
  1631. OS_PASCAL
  1632. DTLunmapMainWindow(
  1633. #ifdef use_prototypes
  1634. DtlContextId    id
  1635. #endif
  1636. );
  1637.  
  1638. extern
  1639. DTL_EXPORT
  1640. int
  1641. OS_PASCAL
  1642. DTLshowHistWindow(
  1643. #ifdef use_prototypes
  1644. DtlContextId    id,
  1645. int    open
  1646. #endif
  1647. );
  1648.  
  1649. extern
  1650. DTL_EXPORT
  1651. int
  1652. OS_PASCAL
  1653. DTLshowErrorWindow(
  1654. #ifdef use_prototypes
  1655. DtlContextId id
  1656. #endif
  1657. );
  1658.  
  1659. extern
  1660. DTL_EXPORT
  1661. char *
  1662. OS_PASCAL
  1663. DTLlookupString(
  1664. #ifdef use_prototypes
  1665. DtlContextId    id,
  1666. int    num,
  1667. int    cache
  1668. #endif
  1669. );
  1670.  
  1671. extern
  1672. DTL_EXPORT
  1673. void
  1674. OS_PASCAL
  1675. DTLmainLoop(
  1676. #ifdef use_prototypes
  1677. DtlContextId    id
  1678. #endif
  1679. );
  1680.  
  1681. extern
  1682. DTL_EXPORT
  1683. void
  1684. OS_PASCAL
  1685. DTLeventSuppress(
  1686. #ifdef use_prototypes
  1687.    DtlContextId id
  1688. #endif
  1689. );
  1690.  
  1691. extern
  1692. DTL_EXPORT
  1693. void
  1694. OS_PASCAL
  1695. DTLeventEnable(
  1696. #ifdef use_prototypes
  1697.    DtlContextId id
  1698. #endif
  1699. );
  1700.  
  1701. extern
  1702. DTL_EXPORT
  1703. void
  1704. OS_PASCAL
  1705. DTLnextEvents(
  1706. #ifdef use_prototypes
  1707. DtlContextId    id
  1708. #endif
  1709. );
  1710.  
  1711. extern
  1712. DTL_EXPORT
  1713. void
  1714. OS_PASCAL
  1715. DTLstartWait(
  1716. #ifdef use_prototypes
  1717. DtlContextId    id
  1718. #endif
  1719. );
  1720.  
  1721. extern
  1722. DTL_EXPORT
  1723. void
  1724. OS_PASCAL
  1725. DTLendWait(
  1726. #ifdef use_prototypes
  1727. DtlContextId    id
  1728. #endif
  1729. );
  1730.  
  1731. extern
  1732. DTL_EXPORT
  1733. void
  1734. OS_PASCAL
  1735. DTLbeep(
  1736. #ifdef use_prototypes
  1737. DtlContextId    id,
  1738. int    vol,
  1739. int    num
  1740. #endif
  1741. );
  1742.  
  1743.  
  1744.  
  1745.  
  1746. /*** Help Routines ***/
  1747.  
  1748. extern 
  1749. DTL_EXPORT
  1750. int
  1751. OS_PASCAL
  1752. DTLshowHelp(
  1753. #ifdef use_prototypes
  1754. DtlContextId id, 
  1755. char *which
  1756. #endif 
  1757. );
  1758.  
  1759.  
  1760. /** Menu prototypes
  1761. Here be the prototypes for the DTLmenu package.
  1762. **/
  1763.  
  1764. extern
  1765. DTL_EXPORT
  1766. DtlMenuItemId
  1767. OS_PASCAL
  1768. DTLmenuAddViewItem(
  1769. #ifdef use_prototypes
  1770. DtlViewId         viewId,
  1771. const char       *text, 
  1772. DtlMenuItemFlags  item_flags,
  1773. DtlMenuItemProc   callback, 
  1774. Up                user_data
  1775. #endif
  1776. );
  1777.  
  1778. extern
  1779. DTL_EXPORT
  1780. DtlMenuItemId
  1781. OS_PASCAL
  1782. DTLmenuAddGraphicItem(
  1783. #ifdef use_prototypes
  1784. DtlGraphicId      graphicId,
  1785. const char       *name, 
  1786. DtlMenuItemFlags  item_flags,
  1787. DtlMenuItemProc   callback, 
  1788. Up                user_data
  1789. #endif
  1790. );
  1791.  
  1792. extern
  1793. DTL_EXPORT
  1794. DtlMenuItemId
  1795. OS_PASCAL
  1796. DTLmenuAddColWinItem(
  1797. #ifdef use_prototypes
  1798. DtlColWinId       colWinId,
  1799. const char       *name, 
  1800. DtlMenuItemFlags  item_flags,
  1801. DtlMenuItemProc   callback, 
  1802. Up                user_data
  1803. #endif
  1804. );
  1805.  
  1806. extern
  1807. DTL_EXPORT
  1808. int
  1809. OS_PASCAL
  1810. DTLmenuRenameItem(
  1811. #ifdef use_prototypes
  1812. DtlMenuItemId     menuItemId, 
  1813. const char       *text
  1814. #endif
  1815. );
  1816.  
  1817. extern
  1818. DTL_EXPORT
  1819. int
  1820. OS_PASCAL
  1821. DTLmenuRemoveItem(
  1822. #ifdef use_prototypes
  1823. DtlMenuItemId     menuItemId
  1824. #endif
  1825. );
  1826.  
  1827. extern
  1828. DTL_EXPORT
  1829. DtlViewId
  1830. OS_PASCAL
  1831. DTLmenuInqView(
  1832. #ifdef use_prototypes
  1833. DtlMenuItemId     menuItemId
  1834. #endif
  1835. );
  1836.  
  1837. extern
  1838. DTL_EXPORT
  1839. DtlGraphicId
  1840. OS_PASCAL
  1841. DTLmenuInqGraphic(
  1842. #ifdef use_prototypes
  1843. DtlMenuItemId     menuItemId 
  1844. #endif
  1845. );
  1846.  
  1847. extern
  1848. DTL_EXPORT
  1849. DtlColWinId
  1850. OS_PASCAL
  1851. DTLmenuInqColWin(
  1852. #ifdef use_prototypes
  1853. DtlMenuItemId     menuItemId 
  1854. #endif
  1855. );
  1856.  
  1857. extern
  1858. DTL_EXPORT
  1859. DtlWindowType
  1860. OS_PASCAL
  1861. DTLmenuInqWindowType(
  1862. #ifdef use_prototypes
  1863. DtlMenuItemId     menuItemId 
  1864. #endif
  1865. );
  1866.  
  1867. extern
  1868. DTL_EXPORT
  1869. int
  1870. OS_PASCAL
  1871. DTLmenuEnableItem(
  1872. #ifdef use_prototypes
  1873. DtlMenuItemId     menuItemId, 
  1874. int               enableitem
  1875. #endif
  1876. );
  1877.  
  1878. extern
  1879. DTL_EXPORT
  1880. int
  1881. OS_PASCAL
  1882. DTLmenuInqItemEnabled(
  1883. #ifdef use_prototypes
  1884. DtlMenuItemId     menuItemId,  
  1885. int              *enabled
  1886. #endif
  1887. );
  1888.  
  1889. extern
  1890. DTL_EXPORT
  1891. int
  1892. OS_PASCAL
  1893. DTLmenuCheckItem(
  1894. #ifdef use_prototypes
  1895. DtlMenuItemId     menuItemId, 
  1896. int               check
  1897. #endif
  1898. );
  1899.  
  1900. extern
  1901. DTL_EXPORT
  1902. int
  1903. OS_PASCAL
  1904. DTLmenuInqItemChecked(
  1905. #ifdef use_prototypes
  1906. DtlMenuItemId     menuItemId, 
  1907. int              *checked
  1908. #endif
  1909. );
  1910.  
  1911. extern
  1912. DTL_EXPORT
  1913. int
  1914. OS_PASCAL
  1915. DTLmenuInqItemInternal(
  1916. #ifdef use_prototypes
  1917. DtlMenuItemId     menuItemId, 
  1918. Up               *return_value
  1919. #endif 
  1920. );
  1921.  
  1922.  
  1923.  
  1924. /** Book Prototypes
  1925. We specify the routines associated with a DTL book.
  1926. **/
  1927.  
  1928. /*** Main Routines ***/
  1929. extern
  1930. DTL_EXPORT
  1931. DtlBookId
  1932. OS_PASCAL
  1933. DTLnewBook(
  1934. #ifdef use_prototypes
  1935. DtlContextId    id,
  1936. char    *book_dbase,
  1937. char    *book_name,
  1938. DtlBookCallbackProc    close_callback,
  1939. Up    user_data,
  1940. long    flags
  1941. #endif
  1942. );
  1943.  
  1944. extern
  1945. DTL_EXPORT
  1946. DtlBookId
  1947. OS_PASCAL
  1948. DTLopenCachedBook(
  1949. #ifdef use_prototypes
  1950. DtlContextId    id,
  1951. char    *book_dbase,
  1952. char    *book_name
  1953. #endif
  1954. );
  1955.  
  1956. extern
  1957. DTL_EXPORT
  1958. DtlBookId
  1959. OS_PASCAL
  1960. DTLADIopenCachedBook(
  1961. #ifdef use_prototypes
  1962. DtlContextId contextId,
  1963. char *bookPath,
  1964. char *adiImpl,
  1965. char *bookAlias
  1966. #endif
  1967. );
  1968.  
  1969. extern
  1970. DTL_EXPORT
  1971. void
  1972. OS_PASCAL
  1973. DTLcloseCachedBook(
  1974. #ifdef use_prototypes
  1975. DtlBookId    bid
  1976. #endif
  1977. );
  1978.  
  1979.  
  1980. /* PHASING OUT AFTER 2.0 */
  1981. extern
  1982. DTL_EXPORT
  1983. int
  1984. OS_PASCAL
  1985. DTLloadToc(
  1986. #ifdef use_prototypes
  1987. DtlBookId    bid,
  1988. char    *name
  1989. #endif
  1990. );
  1991.  
  1992. extern
  1993. DTL_EXPORT
  1994. void
  1995. OS_PASCAL
  1996. DTLdestroyBook(
  1997. #ifdef use_prototypes
  1998. DtlBookId    bid
  1999. #endif
  2000. );
  2001.  
  2002.  
  2003. /*** Interface Routines ***/
  2004. /* PHASING OUT AFTER 2.0 */
  2005. extern
  2006. DTL_EXPORT
  2007. int
  2008. OS_PASCAL
  2009. DTLcreateTocWindow(
  2010. #ifdef use_prototypes
  2011. DtlBookId    bid,
  2012. char    *name,
  2013. char    *title
  2014. #endif
  2015. );
  2016.  
  2017.  
  2018.  
  2019. /* PHASING OUT AFTER 2.0 */
  2020. extern
  2021. DTL_EXPORT
  2022. int
  2023. OS_PASCAL
  2024. DTLmapTocWindow(
  2025. #ifdef use_prototypes
  2026. DtlBookId    bid
  2027. #endif
  2028. );
  2029.  
  2030. /* PHASING OUT AFTER 2.0 */
  2031. extern
  2032. DTL_EXPORT
  2033. int
  2034. OS_PASCAL
  2035. DTLunmapTocWindow(
  2036. #ifdef use_prototypes
  2037. DtlBookId    bid
  2038. #endif
  2039. );
  2040.  
  2041. /* PHASING OUT AFTER 2.0 */
  2042. extern
  2043. DTL_EXPORT
  2044. int
  2045. OS_PASCAL
  2046. DTLcreateLookupWindow(
  2047. #ifdef use_prototypes
  2048. DtlBookId    bid,
  2049. char    *name,
  2050. char    *title
  2051. #endif
  2052. );
  2053.  
  2054. /* PHASING OUT AFTER 2.0 */
  2055. extern
  2056. DTL_EXPORT
  2057. int
  2058. OS_PASCAL
  2059. DTLmapLookupWindow(
  2060. #ifdef use_prototypes
  2061. DtlBookId    bid
  2062. #endif
  2063. );
  2064.  
  2065. /* PHASING OUT AFTER 2.0 */
  2066. extern
  2067. DTL_EXPORT
  2068. int
  2069. OS_PASCAL
  2070. DTLunmapLookupWindow(
  2071. #ifdef use_prototypes
  2072. DtlBookId    bid
  2073. #endif
  2074. );
  2075.  
  2076. /* PHASING OUT AFTER 2.0 */
  2077. extern
  2078. DTL_EXPORT
  2079. int
  2080. OS_PASCAL
  2081. DTLcreateAnnotationWindow(
  2082. #ifdef use_prototypes
  2083. DtlBookId    bid,
  2084. char    *name,
  2085. char    *title
  2086. #endif
  2087. );
  2088.  
  2089. /* PHASING OUT AFTER 2.0 */
  2090. extern
  2091. DTL_EXPORT
  2092. int
  2093. OS_PASCAL
  2094. DTLmapAnnotationWindow(
  2095. #ifdef use_prototypes
  2096. DtlBookId    bid
  2097. #endif
  2098. );
  2099.  
  2100. /* PHASING OUT AFTER 2.0 */
  2101. extern
  2102. DTL_EXPORT
  2103. int
  2104. OS_PASCAL
  2105. DTLunmapAnnotationWindow(
  2106. #ifdef use_prototypes
  2107. DtlBookId    bid
  2108. #endif
  2109. );
  2110.  
  2111.  
  2112.  
  2113.  
  2114.  
  2115.  
  2116. /*** Misc Routines ***/
  2117. extern
  2118. DTL_EXPORT
  2119. int
  2120. OS_PASCAL
  2121. DTLredrawAllViews(
  2122. #ifdef use_prototypes
  2123. DtlBookId    bid
  2124. #endif
  2125. );
  2126.  
  2127. extern
  2128. DTL_EXPORT
  2129. int
  2130. OS_PASCAL
  2131. DTLsetActiveView(
  2132. #ifdef use_prototypes
  2133. DtlBookId    bid,
  2134. DtlViewId    vid
  2135. #endif
  2136. );
  2137.  
  2138. extern
  2139. DTL_EXPORT
  2140. DtlViewId
  2141. OS_PASCAL
  2142. DTLinqActiveView(
  2143. #ifdef use_prototypes
  2144. DtlBookId    bid
  2145. #endif
  2146. );
  2147.  
  2148. extern
  2149. DTL_EXPORT
  2150. DtlContextId
  2151. OS_PASCAL
  2152. DTLinqContext(
  2153. #ifdef use_prototypes
  2154. DtlBookId    bid
  2155. #endif
  2156. );
  2157.  
  2158. extern
  2159. DTL_EXPORT
  2160. char *
  2161. OS_PASCAL
  2162. DTLinqBookName(
  2163. #ifdef use_prototypes
  2164. DtlBookId    bid
  2165. #endif
  2166. );
  2167.  
  2168. extern
  2169. DTL_EXPORT
  2170. UCSchar16 *
  2171. OS_PASCAL
  2172. DTLwInqBookName(
  2173. #ifdef use_prototypes
  2174.    DtlBookId    bookId
  2175. #endif
  2176. );
  2177.  
  2178. extern
  2179. DTL_EXPORT
  2180. char *
  2181. OS_PASCAL
  2182. DTLinqBookDbase(
  2183. #ifdef use_prototypes
  2184. DtlBookId    bid
  2185. #endif
  2186. );
  2187.  
  2188. extern
  2189. DTL_EXPORT
  2190. char *
  2191. OS_PASCAL
  2192. DTLinqBookAlias(
  2193. #ifdef use_prototypes
  2194. DtlBookId    bid
  2195. #endif
  2196. );
  2197.  
  2198. extern
  2199. DTL_EXPORT
  2200. int
  2201. OS_PASCAL
  2202. DTLsetBookAlias(
  2203. #ifdef use_prototypes
  2204. DtlBookId    bid,
  2205. char*       alias                     
  2206. #endif
  2207. );
  2208.  
  2209. extern
  2210. DTL_EXPORT
  2211. char *
  2212. OS_PASCAL
  2213. DTLscriptEvaluate(
  2214. #ifdef use_prototypes
  2215. DtlBookId    bid,
  2216. unsigned long    eid,
  2217. char *        expression,
  2218. char        buffer[],
  2219. int        length
  2220. #endif
  2221. );
  2222.  
  2223. extern
  2224. DTL_EXPORT
  2225. UCSchar16 *
  2226. OS_PASCAL
  2227. DTLwScriptEvaluate(
  2228. #ifdef use_prototypes
  2229. DtlBookId        bid,
  2230. unsigned long    eid,
  2231. UCSchar16 *        expression,
  2232. UCSchar16        buffer[],
  2233. size_t            length
  2234. #endif
  2235. );
  2236.  
  2237. extern
  2238. DTL_EXPORT
  2239. char *
  2240. OS_PASCAL
  2241. DTLmultiBookScriptEvaluate(
  2242. #ifdef use_prototypes
  2243. DtlBookId       bid,
  2244. DtlBookId       dbid,
  2245. unsigned long   eid,
  2246. char *          expression,
  2247. char            buffer[],
  2248. int             length
  2249. #endif
  2250. );
  2251.  
  2252. extern
  2253. DTL_EXPORT
  2254. UCSchar16 *
  2255. OS_PASCAL
  2256. DTLwMultiBookScriptEvaluate(
  2257. #ifdef use_prototypes
  2258. DtlBookId       bid,
  2259. DtlBookId       dbid,
  2260. unsigned long   eid,
  2261. UCSchar16 *     expression,
  2262. UCSchar16       buffer[],
  2263. size_t          length
  2264. #endif
  2265. );
  2266.  
  2267. extern
  2268. DTL_EXPORT
  2269. char *
  2270. OS_PASCAL
  2271. DTLgetElementScript(
  2272. #ifdef use_prototypes
  2273. DtlViewId vid, 
  2274. unsigned long eid, 
  2275. char scr[], 
  2276. char parms[], 
  2277. int maxbuf
  2278. #endif
  2279. );
  2280.  
  2281. extern
  2282. DTL_EXPORT
  2283. DtlViewId
  2284. OS_PASCAL
  2285. DTLgetActiveMDIView(
  2286. #ifdef use_prototypes
  2287. DtlContextId    id
  2288. #endif
  2289. );
  2290.  
  2291. extern
  2292. DTL_EXPORT
  2293. DtlTocViewId
  2294. OS_PASCAL
  2295. DTLnewAssociatedTocView(
  2296. #ifdef use_prototypes
  2297. DtlViewId vid
  2298. #endif
  2299. );
  2300.  
  2301. extern
  2302. DTL_EXPORT
  2303. DtlGuiId
  2304. OS_PASCAL
  2305. DTLinqViewComponent(
  2306. #ifdef use_prototypes
  2307. DtlViewId         vid,
  2308. DtlViewComponent  cmp
  2309. #endif
  2310. );
  2311.  
  2312. extern
  2313. DTL_EXPORT
  2314. int
  2315. OS_PASCAL
  2316. DTLgetViewLayout(
  2317. #ifdef use_prototypes
  2318. DtlViewId       vid,
  2319. DtlViewLayout  *viewLayout
  2320. #endif
  2321. );
  2322.  
  2323. extern
  2324. DTL_EXPORT
  2325. int
  2326. OS_PASCAL
  2327. DTLsetViewLayout(
  2328. #ifdef use_prototypes
  2329. DtlViewId       vid,
  2330. DtlViewLayout   viewLayout
  2331. #endif
  2332. );
  2333.  
  2334. extern
  2335. DTL_EXPORT
  2336. int
  2337. OS_PASCAL
  2338. DTLperformViewMenuAction(
  2339. #ifdef use_prototypes                            
  2340. DtlViewId   vid,
  2341. Up          menuItem
  2342. #endif
  2343. );
  2344.  
  2345.  
  2346.  
  2347.  
  2348.  
  2349.  
  2350.  
  2351.  
  2352.  
  2353.  
  2354.  
  2355.  
  2356.  
  2357. extern 
  2358. DTL_EXPORT
  2359. int
  2360. OS_PASCAL
  2361. DTLaddAnnotationAsUser(
  2362. #ifdef use_prototypes
  2363. DtlViewId vid, 
  2364. unsigned long eid, 
  2365. char *title, 
  2366. int genre, 
  2367. char *ascript
  2368. #endif
  2369. );
  2370.  
  2371.  
  2372. /** DtlTocView Routines
  2373. **/
  2374.  
  2375.  
  2376. extern 
  2377. DTL_EXPORT
  2378. void
  2379. OS_PASCAL
  2380. DTLdestroyTocView(
  2381. #ifdef use_prototypes
  2382. DtlTocViewId    tid
  2383. #endif
  2384. );
  2385.  
  2386. extern
  2387. DTL_EXPORT
  2388. DtlBookId
  2389. OS_PASCAL
  2390. DTLinqTocViewBook(
  2391. #ifdef use_prototypes
  2392. DtlTocViewId    tid
  2393. #endif
  2394. );
  2395.  
  2396. extern
  2397. DTL_EXPORT
  2398. int
  2399. OS_PASCAL
  2400. DTLtocViewReloadStyleSheet(
  2401. #ifdef use_prototypes
  2402. DtlTocViewId tvid
  2403. #endif
  2404. );
  2405.  
  2406. extern
  2407. DTL_EXPORT
  2408. int
  2409. OS_PASCAL
  2410. DTLflushStyleSheetCache(
  2411. #ifdef use_prototypes
  2412. DtlContextId id
  2413. #endif
  2414. );
  2415.  
  2416. extern
  2417. DTL_EXPORT
  2418. int
  2419. OS_PASCAL
  2420. DTLresetTocView(
  2421. #ifdef use_prototypes
  2422. DtlTocViewId    tid,
  2423. unsigned long root_element,
  2424. char    *viewname
  2425. #endif
  2426. );
  2427.  
  2428. extern
  2429. DTL_EXPORT
  2430. int
  2431. OS_PASCAL
  2432. DTLaddTocViewCallback(
  2433. #ifdef use_prototypes
  2434. DtlTocViewId    tid,
  2435. int    which,
  2436. DtlTocViewCallbackProc    close_cb,
  2437. Up    user_data
  2438. #endif
  2439. );
  2440.  
  2441. extern
  2442. DTL_EXPORT
  2443. int
  2444. OS_PASCAL
  2445. DTLinqTocViewCallback(
  2446. #ifdef use_prototypes
  2447. DtlTocViewId        tid,
  2448. int            which,
  2449. DtlTocViewCallbackProc    *close_cb,
  2450. Up            *user_data
  2451. #endif
  2452. );
  2453.  
  2454. extern
  2455. DTL_EXPORT
  2456. long
  2457. OS_PASCAL
  2458. DTLgetTocSize(
  2459. #ifdef use_prototypes
  2460. DtlTocViewId tid
  2461. #endif
  2462. );
  2463.  
  2464. extern
  2465. DTL_EXPORT
  2466. int
  2467. OS_PASCAL
  2468. DTLgetTocLevel(
  2469. #ifdef use_prototypes
  2470. DtlTocViewId tid,
  2471. long    idx
  2472. #endif
  2473. );
  2474.  
  2475. extern
  2476. DTL_EXPORT
  2477. unsigned long
  2478. OS_PASCAL
  2479. DTLgetTocElement(
  2480. #ifdef use_prototypes
  2481. DtlTocViewId tid,
  2482. long    idx
  2483. #endif
  2484. );
  2485.  
  2486. extern
  2487. DTL_EXPORT
  2488. long
  2489. OS_PASCAL
  2490. DTLgetTocRecord(
  2491. #ifdef use_prototypes
  2492. DtlTocViewId tid,
  2493. unsigned long    eid
  2494. #endif
  2495. );
  2496.  
  2497. extern
  2498. DTL_EXPORT
  2499. char *
  2500. OS_PASCAL
  2501. DTLgetTocRecordText(
  2502. #ifdef use_prototypes
  2503. DtlTocViewId tid,
  2504. long    entry,
  2505. char  buf[],
  2506. int   buf_size
  2507. #endif
  2508. );
  2509.  
  2510. extern
  2511. DTL_EXPORT
  2512. long
  2513. OS_PASCAL
  2514. DTLgetTocActiveRecord(
  2515. #ifdef use_prototypes
  2516. DtlTocViewId tid
  2517. #endif
  2518. );
  2519.  
  2520. extern 
  2521. DTL_EXPORT
  2522. int
  2523. OS_PASCAL
  2524. DTLsetTocActiveSection(
  2525. #ifdef use_prototypes
  2526. DtlTocViewId tid,
  2527. unsigned long    eid
  2528. #endif
  2529. );
  2530.  
  2531. extern
  2532. DTL_EXPORT
  2533. int
  2534. OS_PASCAL
  2535. DTLexpandToc(
  2536. #ifdef use_prototypes
  2537. DtlTocViewId tid,
  2538. long    idx
  2539. #endif
  2540. );
  2541.  
  2542. extern
  2543. DTL_EXPORT
  2544. int
  2545. OS_PASCAL
  2546. DTLcollapseToc(
  2547. #ifdef use_prototypes
  2548. DtlTocViewId tid,
  2549. long    idx
  2550. #endif
  2551. );
  2552.  
  2553. extern
  2554. DTL_EXPORT
  2555. long
  2556. OS_PASCAL
  2557. DTLgetTocTop(
  2558. #ifdef use_prototypes
  2559. DtlTocViewId tid
  2560. #endif
  2561. );
  2562.  
  2563. extern
  2564. DTL_EXPORT
  2565. long
  2566. OS_PASCAL
  2567. DTLgetTocBottom(
  2568. #ifdef use_prototypes
  2569. DtlTocViewId tid
  2570. #endif
  2571. );
  2572.  
  2573. extern
  2574. DTL_EXPORT
  2575. int
  2576. OS_PASCAL
  2577. DTLscrollToc(    
  2578. #ifdef use_prototypes
  2579. DtlTocViewId tid,
  2580. long    idx
  2581. #endif
  2582. );
  2583.  
  2584. extern 
  2585. DTL_EXPORT
  2586. int
  2587. OS_PASCAL
  2588. DTLscrollTocToElement(
  2589. #ifdef use_prototypes
  2590. DtlTocViewId tid, 
  2591. unsigned long eid
  2592. #endif
  2593. );
  2594.  
  2595.  
  2596.  
  2597.  
  2598. extern
  2599. DTL_EXPORT
  2600. int
  2601. OS_PASCAL
  2602. DTLmapTocView(
  2603. #ifdef use_prototypes
  2604. DtlTocViewId tid
  2605. #endif
  2606. );
  2607.  
  2608. extern
  2609. DTL_EXPORT
  2610. int
  2611. OS_PASCAL
  2612. DTLunmapTocView(
  2613. #ifdef use_prototypes
  2614. DtlTocViewId tid
  2615. #endif
  2616. );
  2617.  
  2618. extern
  2619. DTL_EXPORT
  2620. int
  2621. OS_PASCAL
  2622. DTLenableTocView(
  2623. #ifdef use_prototypes
  2624. DtlTocViewId tid,
  2625. int          on_or_off
  2626. #endif           
  2627. );
  2628.  
  2629. extern
  2630. DTL_EXPORT
  2631. int
  2632. OS_PASCAL
  2633. DTLraiseTocView(
  2634. #ifdef use_prototypes
  2635. DtlTocViewId tid
  2636. #endif
  2637. );
  2638.  
  2639. extern
  2640. DTL_EXPORT
  2641. void
  2642. OS_PASCAL
  2643. DTLstartTocViewWait(
  2644. #ifdef use_prototypes
  2645. DtlTocViewId tid
  2646. #endif
  2647. );
  2648.  
  2649. extern
  2650. DTL_EXPORT
  2651. void
  2652. OS_PASCAL
  2653. DTLendTocViewWait(
  2654. #ifdef use_prototypes
  2655. DtlTocViewId tid
  2656. #endif
  2657. );
  2658.  
  2659. extern
  2660. DTL_EXPORT
  2661. int
  2662. OS_PASCAL
  2663. DTLcopyToc(
  2664. #ifdef use_prototypes
  2665. DtlTocViewId tid,
  2666. int    mode
  2667. #endif
  2668. );
  2669.  
  2670. extern
  2671. DTL_EXPORT
  2672. int
  2673. OS_PASCAL
  2674. DTLsetTocMode(
  2675. #ifdef use_prototypes
  2676. DtlTocViewId tid,
  2677. int    mode
  2678. #endif
  2679. );
  2680.  
  2681. extern
  2682. DTL_EXPORT
  2683. int
  2684. OS_PASCAL
  2685. DTLsetTocViewZoomFactor(
  2686. #ifdef use_prototypes
  2687. DtlTocViewId vid,
  2688. double    zoom_factor
  2689. #endif
  2690. );
  2691.  
  2692. extern
  2693. DTL_EXPORT
  2694. int
  2695. OS_PASCAL
  2696. DTLzoomTocView(
  2697. #ifdef use_prototypes
  2698. DtlTocViewId tvid,
  2699. double zoom_factor
  2700. #endif
  2701. );
  2702.  
  2703. extern
  2704. DTL_EXPORT
  2705. int
  2706. OS_PASCAL
  2707. DTLgenerateTocSelections(
  2708. #ifdef use_prototypes
  2709. DtlTocViewId tvid, 
  2710. DtlTocViewGeneratorProc cb, 
  2711. Up data
  2712. #endif
  2713. );
  2714.  
  2715. extern 
  2716. DTL_EXPORT
  2717. int
  2718. OS_PASCAL
  2719. DTLselectTocRecord(
  2720. #ifdef use_prototypes
  2721. DtlTocViewId tvid, long idx, int on_or_off
  2722. #endif
  2723. );
  2724.  
  2725. extern 
  2726. DTL_EXPORT
  2727. int
  2728. OS_PASCAL
  2729. DTLselectTocElement(
  2730. #ifdef use_prototypes
  2731. DtlTocViewId tvid, unsigned long eid, int on_or_off
  2732. #endif
  2733. );
  2734.  
  2735.  
  2736.  
  2737.  
  2738.  
  2739.  
  2740.  
  2741.  
  2742.  
  2743. /** View Prototypes
  2744. We specify the routines with a DTL view.
  2745. **/
  2746.  
  2747. /*** Main Routines ***/
  2748. extern
  2749. DTL_EXPORT
  2750. DtlViewId
  2751. OS_PASCAL
  2752. DTLnewView(
  2753. #ifdef use_prototypes
  2754. DtlBookId    bid,
  2755. char    *name,
  2756. char    *title,
  2757. char    *viewname,
  2758. unsigned long root_element,
  2759. DtlViewCallbackProc    close_callback,
  2760. Up    user_data,
  2761. long    flags
  2762. #endif
  2763. );
  2764.  
  2765.  
  2766.  
  2767. extern
  2768. DTL_EXPORT
  2769. int
  2770. OS_PASCAL
  2771. DTLviewSetBook(
  2772. #ifdef use_prototypes
  2773. DtlViewId vid,
  2774. DtlBookId bid,
  2775. unsigned long root,
  2776. char *stylesheet,
  2777. char *toc_stylesheet
  2778. #endif
  2779. );
  2780.  
  2781. extern
  2782. DTL_EXPORT
  2783. int
  2784. OS_PASCAL
  2785. DTLviewSetTitle(
  2786. #ifdef use_prototypes
  2787. DtlViewId vid,
  2788. char *title
  2789. #endif
  2790. );
  2791.  
  2792. extern
  2793. DTL_EXPORT
  2794. int
  2795. OS_PASCAL
  2796. DTLviewReloadStyleSheet(
  2797. #ifdef use_prototypes
  2798. DtlViewId vid
  2799. #endif
  2800. );
  2801.  
  2802. extern
  2803. DTL_EXPORT
  2804. int
  2805. OS_PASCAL
  2806. DTLresetView(
  2807. #ifdef use_prototypes
  2808. DtlViewId vid, 
  2809. unsigned long root, 
  2810. char *stylesheet
  2811. #endif
  2812. );
  2813.  
  2814. extern
  2815. DTL_EXPORT
  2816. int
  2817. OS_PASCAL
  2818. DTLresetRevelatoryView(
  2819. #ifdef use_prototypes
  2820. DtlViewId vid, 
  2821. int    revelatory
  2822. #endif
  2823. );
  2824.  
  2825. extern
  2826. DTL_EXPORT
  2827. int
  2828. OS_PASCAL
  2829. DTLresetViewToc(
  2830. #ifdef use_prototypes
  2831. DtlViewId vid, 
  2832. unsigned long root, 
  2833. char *viewname
  2834. #endif
  2835. );
  2836.  
  2837. extern
  2838. DTL_EXPORT
  2839. void
  2840. OS_PASCAL
  2841. DTLdestroyView(
  2842. #ifdef use_prototypes
  2843. DtlViewId    vid
  2844. #endif
  2845. );
  2846.  
  2847.  
  2848. /*** Edit Routines ***/
  2849. extern
  2850. DTL_EXPORT
  2851. int
  2852. OS_PASCAL
  2853. DTLsetViewMode(
  2854. #ifdef use_prototypes
  2855. DtlViewId vid,
  2856. int    mode
  2857. #endif
  2858. );
  2859.  
  2860. extern
  2861. DTL_EXPORT
  2862. int
  2863. OS_PASCAL
  2864. DTLcopyView(
  2865. #ifdef use_prototypes
  2866. DtlViewId vid,
  2867. int    mode
  2868. #endif
  2869. );
  2870.  
  2871. extern
  2872. DTL_EXPORT
  2873. int
  2874. OS_PASCAL
  2875. DTLgetViewSelection(
  2876. #ifdef use_prototypes
  2877. DtlViewId vid,
  2878. unsigned long *eid1,
  2879. long    *offset1,
  2880. unsigned long *eid2,
  2881. long *offset2
  2882. #endif
  2883. );
  2884.  
  2885. extern
  2886. DTL_EXPORT
  2887. int
  2888. OS_PASCAL
  2889. DTLsetViewSelection(
  2890. #ifdef use_prototypes
  2891. DtlViewId vid,
  2892. unsigned long eid1,
  2893. long    offset1,
  2894. unsigned long eid2,
  2895. long offset2
  2896. #endif
  2897. );
  2898.  
  2899. extern
  2900. DTL_EXPORT
  2901. int
  2902. OS_PASCAL
  2903. DTLsetViewZoomFactor(
  2904. #ifdef use_prototypes
  2905. DtlViewId vid,
  2906. double    zoom_factor
  2907. #endif
  2908. );
  2909.  
  2910. extern
  2911. DTL_EXPORT
  2912. int
  2913. OS_PASCAL
  2914. DTLzoomView(
  2915. #ifdef use_prototypes
  2916. DtlViewId vid,
  2917. double    zoom_factor
  2918. #endif
  2919. );
  2920.  
  2921. /*** Interface Routines ***/
  2922. extern
  2923. DTL_EXPORT
  2924. int
  2925. OS_PASCAL
  2926. DTLmapView(
  2927. #ifdef use_prototypes
  2928. DtlViewId    vid
  2929. #endif
  2930. );
  2931.  
  2932. extern 
  2933. DTL_EXPORT
  2934. int
  2935. OS_PASCAL
  2936. DTLmapViewWithToc(
  2937. #ifdef use_prototypes
  2938.    DtlViewId viewId,
  2939.    int       showtoc
  2940. #endif
  2941. );
  2942.  
  2943. extern
  2944. DTL_EXPORT
  2945. int
  2946. OS_PASCAL
  2947. DTLunmapView(
  2948. #ifdef use_prototypes
  2949. DtlViewId    vid
  2950. #endif
  2951. );
  2952.  
  2953. extern
  2954. DTL_EXPORT
  2955. int
  2956. OS_PASCAL
  2957. DTLenableView(
  2958. #ifdef use_prototypes
  2959. DtlViewId   vid,
  2960. int         on_or_off
  2961. #endif           
  2962. );
  2963.  
  2964. extern
  2965. DTL_EXPORT
  2966. int
  2967. OS_PASCAL
  2968. DTLmapViewToc(
  2969. #ifdef use_prototypes
  2970. DtlViewId    vid
  2971. #endif
  2972. );
  2973.  
  2974. extern
  2975. DTL_EXPORT
  2976. int
  2977. OS_PASCAL
  2978. DTLunmapViewToc(
  2979. #ifdef use_prototypes
  2980. DtlViewId    vid
  2981. #endif
  2982. );
  2983.  
  2984. extern
  2985. DTL_EXPORT
  2986. int
  2987. OS_PASCAL
  2988. DTLraiseView(
  2989. #ifdef use_prototypes
  2990. DtlViewId    vid
  2991. #endif
  2992. );
  2993.  
  2994. extern
  2995. DTL_EXPORT
  2996. DtlGuiId
  2997. OS_PASCAL
  2998. DTLinqViewGUI(
  2999. #ifdef use_prototypes
  3000. DtlViewId    vid
  3001. #endif
  3002. );
  3003.  
  3004. extern 
  3005. DTL_EXPORT
  3006. int
  3007. OS_PASCAL
  3008. DTLsuggestViewGeometry(
  3009. #ifdef use_prototypes
  3010. DtlViewId    vid,
  3011. int    width,
  3012. int    height
  3013. #endif
  3014. );
  3015.  
  3016. extern
  3017. DTL_EXPORT
  3018. int
  3019. OS_PASCAL
  3020. DTLredrawView(
  3021. #ifdef use_prototypes
  3022. DtlViewId    vid
  3023. #endif
  3024. );
  3025.  
  3026. extern
  3027. DTL_EXPORT
  3028. int
  3029. OS_PASCAL
  3030. DTLrebuildView(
  3031. #ifdef use_prototypes
  3032. DtlViewId    vid
  3033. #endif
  3034. );
  3035.  
  3036. extern
  3037. DTL_EXPORT
  3038. int
  3039. OS_PASCAL
  3040. DTLmapAnnotWindow(
  3041. #ifdef use_prototypes
  3042. DtlViewId    vid
  3043. #endif
  3044. );
  3045.  
  3046. extern
  3047. DTL_EXPORT
  3048. int
  3049. OS_PASCAL
  3050. DTLunmapAnnotWindow(
  3051. #ifdef use_prototypes
  3052. DtlViewId    vid
  3053. #endif
  3054. );
  3055.  
  3056.  
  3057. /*** Action Routines ***/
  3058. extern
  3059. DTL_EXPORT
  3060. int
  3061. OS_PASCAL
  3062. DTLscrollView(
  3063. #ifdef use_prototypes
  3064. DtlViewId    vid,
  3065. unsigned long    element_id,
  3066. int        forward
  3067. #endif
  3068. );
  3069.  
  3070. extern
  3071. DTL_EXPORT
  3072. int
  3073. OS_PASCAL
  3074. DTLhscrollView(
  3075. #ifdef use_prototypes
  3076. DtlViewId       vid,
  3077. long            pos
  3078. #endif
  3079. );
  3080.  
  3081. extern
  3082. DTL_EXPORT
  3083. int
  3084. OS_PASCAL
  3085. DTLlaunchScript(
  3086. #ifdef use_prototypes
  3087. DtlViewId    vid,
  3088. unsigned long    element_id
  3089. #endif
  3090. );
  3091.  
  3092. extern
  3093. DTL_EXPORT
  3094. int
  3095. OS_PASCAL
  3096. DTLlaunchAnnot(
  3097. #ifdef use_prototypes
  3098. DtlViewId    vid,
  3099. unsigned long    element_id,
  3100. char    *title
  3101. #endif
  3102. );
  3103.  
  3104. extern
  3105. DTL_EXPORT
  3106. int
  3107. OS_PASCAL
  3108. DTLviewGoBack(
  3109. #ifdef use_prototypes
  3110. DtlViewId vid
  3111. #endif
  3112. );
  3113.  
  3114. extern
  3115. DTL_EXPORT
  3116. void
  3117. OS_PASCAL
  3118. DTLstartViewWait(
  3119. #ifdef use_prototypes
  3120. DtlViewId vid
  3121. #endif
  3122. );
  3123.  
  3124. extern
  3125. DTL_EXPORT
  3126. void
  3127. OS_PASCAL
  3128. DTLendViewWait(
  3129. #ifdef use_prototypes
  3130. DtlViewId vid
  3131. #endif
  3132. );
  3133.  
  3134.  
  3135.  
  3136.  
  3137. /*** Position Routines ***/
  3138. extern
  3139. DTL_EXPORT
  3140. int
  3141. OS_PASCAL
  3142. DTLreportTopPosition(
  3143. #ifdef use_prototypes
  3144. DtlViewId    vid,
  3145. unsigned long    *element_id,
  3146. char    attributes[],
  3147. int    attribute_max_length
  3148. #endif
  3149. );
  3150.  
  3151. extern
  3152. DTL_EXPORT
  3153. int
  3154. OS_PASCAL
  3155. DTLreportBottomPosition(
  3156. #ifdef use_prototypes
  3157. DtlViewId    vid,
  3158. unsigned long    *element_id,
  3159. char    attributes[],
  3160. int    attribute_max_length
  3161. #endif
  3162. );
  3163.  
  3164. extern
  3165. DTL_EXPORT
  3166. long
  3167. OS_PASCAL
  3168. DTLreportElementHeight(
  3169. #ifdef use_prototypes
  3170. DtlViewId vid, 
  3171. unsigned long eid, 
  3172. int w
  3173. #endif
  3174. );
  3175.  
  3176. extern
  3177. DTL_EXPORT
  3178. int
  3179. OS_PASCAL
  3180. DTLisElementVisible(
  3181. #ifdef use_prototypes
  3182. DtlViewId vid, 
  3183. unsigned long eid 
  3184. #endif
  3185. );
  3186.  
  3187. extern
  3188. DTL_EXPORT
  3189. int
  3190. OS_PASCAL
  3191. DTLreportViewElements(
  3192. #ifdef use_prototypes
  3193. DtlViewId vid, 
  3194. DtlElemGeom **geoms, 
  3195. long *num
  3196. #endif
  3197. );
  3198.  
  3199. extern
  3200. DTL_EXPORT
  3201. void
  3202. OS_PASCAL
  3203. DTLfreeElemGeoms(
  3204. #ifdef use_prototypes
  3205. DtlViewId vid, 
  3206. DtlElemGeom *geoms 
  3207. #endif
  3208. );
  3209.  
  3210. /*** Inquire Routines ***/
  3211. extern
  3212. DTL_EXPORT
  3213. DtlBookId
  3214. OS_PASCAL
  3215. DTLinqBook(
  3216. #ifdef use_prototypes
  3217. DtlViewId    vid
  3218. #endif
  3219. );
  3220.  
  3221. extern
  3222. DTL_EXPORT
  3223. unsigned long
  3224. OS_PASCAL
  3225. DTLinqRootElement(
  3226. #ifdef use_prototypes
  3227. DtlViewId    vid
  3228. #endif
  3229. );
  3230.  
  3231. extern
  3232. DTL_EXPORT
  3233. char *
  3234. OS_PASCAL
  3235. DTLinqViewName(
  3236. #ifdef use_prototypes
  3237. DtlViewId    vid
  3238. #endif
  3239. );
  3240.  
  3241.  
  3242.  
  3243. extern
  3244. DTL_EXPORT
  3245. void
  3246. OS_PASCAL
  3247. DTLcloseAllExrefs(
  3248. #ifdef use_prototypes
  3249. DtlViewId    vid
  3250. #endif
  3251. );
  3252.  
  3253.  
  3254.  
  3255. /** Raster Prototypes
  3256. We specify the routines with a DTL raster object.
  3257. **/
  3258.  
  3259.  
  3260.  
  3261. /** Graphics Prototypes
  3262. We specify the routines with a DTL graphics object.
  3263. **/
  3264.  
  3265.  
  3266. /*** Main Routines ***/
  3267.  
  3268.  
  3269. /*** Main Routines ***/
  3270.  
  3271. extern
  3272. DTL_EXPORT
  3273. DtlGraphicId
  3274. OS_PASCAL
  3275. DTLnewGraphic(
  3276. #ifdef use_prototypes
  3277. DtlContextId    id,
  3278. char    *title,
  3279. int    gtype
  3280. #endif
  3281. );
  3282.  
  3283. extern
  3284. DTL_EXPORT
  3285. int
  3286. OS_PASCAL
  3287. DTLloadGraphicFile(
  3288. #ifdef use_prototypes
  3289. DtlGraphicId    rid,
  3290. char    *path
  3291. #endif
  3292. );
  3293.  
  3294. extern
  3295. DTL_EXPORT
  3296. int
  3297. OS_PASCAL
  3298. DTLgraphicZoomToRegion(
  3299. #ifdef use_prototypes
  3300. DtlGraphicId    gid,
  3301. int    x,
  3302. int    y,
  3303. int    w,
  3304. int    h
  3305. #endif
  3306. );
  3307.  
  3308. extern
  3309. DTL_EXPORT
  3310. int
  3311. OS_PASCAL
  3312. DTLgraphicZoomToGraphicRegion(
  3313. #ifdef use_prototypes
  3314. DtlGraphicId    gid,
  3315. double x1,
  3316. double y1,
  3317. double x2,
  3318. double y2
  3319. #endif
  3320. );
  3321.  
  3322. extern
  3323. DTL_EXPORT
  3324. int
  3325. OS_PASCAL
  3326. DTLgraphicZoom(
  3327. #ifdef use_prototypes
  3328. DtlGraphicId    gid,
  3329. double    zf
  3330. #endif
  3331. );
  3332.  
  3333. extern
  3334. DTL_EXPORT
  3335. int
  3336. OS_PASCAL
  3337. DTLgraphicZoomReset(
  3338. #ifdef use_prototypes
  3339. DtlGraphicId    gid
  3340. #endif
  3341. );
  3342.  
  3343. extern
  3344. DTL_EXPORT
  3345. int
  3346. OS_PASCAL
  3347. DTLgetGraphicDimensions(
  3348. #ifdef use_prototypes
  3349. DtlGraphicId    rid,
  3350. int    *ww,
  3351. int    *hh               
  3352. #endif
  3353. );
  3354.  
  3355.  
  3356. extern
  3357. DTL_EXPORT
  3358. void
  3359. OS_PASCAL
  3360. DTLdestroyGraphic(
  3361. #ifdef use_prototypes
  3362. DtlGraphicId    rid
  3363. #endif
  3364. );
  3365.  
  3366. extern
  3367. DTL_EXPORT
  3368. int 
  3369. OS_PASCAL
  3370. DTLnormalizeGraphicCoords(
  3371. #ifdef use_prototypes
  3372. DtlGraphicId    rid,
  3373. int x,
  3374. int y,
  3375. double *normX,
  3376. double *normY
  3377. #endif
  3378. );
  3379.  
  3380. extern
  3381. DTL_EXPORT
  3382. int 
  3383. OS_PASCAL
  3384. DTLsetDefaultGraphicGeometry(
  3385. #ifdef use_prototypes
  3386. DtlGraphicId    rid, 
  3387. int             default_width, 
  3388. int             default_hgt
  3389. #endif
  3390. );
  3391.  
  3392. /*** Graphics coordinate transformations. ***/
  3393.  
  3394. extern
  3395. DTL_EXPORT
  3396. int 
  3397. OS_PASCAL
  3398. DTLgraphicCoordTransformGtoW(
  3399. #ifdef use_prototypes
  3400. DtlGraphicId    rid,
  3401. double xG,
  3402. double yG,
  3403. int *xW,
  3404. int *yW
  3405. #endif
  3406. );
  3407.  
  3408. extern
  3409. DTL_EXPORT
  3410. int 
  3411. OS_PASCAL
  3412. DTLgraphicCoordTransformWtoG(
  3413. #ifdef use_prototypes
  3414. DtlGraphicId    rid,
  3415. int xW,
  3416. int yW,
  3417. double *xG,
  3418. double *yG
  3419. #endif
  3420. );
  3421.  
  3422. extern
  3423. DTL_EXPORT
  3424. int 
  3425. OS_PASCAL
  3426. DTLgraphicCoordTransformGtoH(
  3427. #ifdef use_prototypes
  3428. DtlGraphicId    rid,
  3429. double xG,
  3430. double yG,
  3431. double *xH,
  3432. double *yH
  3433. #endif
  3434. );
  3435.  
  3436. extern
  3437. DTL_EXPORT
  3438. int 
  3439. OS_PASCAL
  3440. DTLgraphicCoordTransformHtoG(
  3441. #ifdef use_prototypes
  3442. DtlGraphicId    rid,
  3443. double xH,
  3444. double yH,
  3445. double *xG,
  3446. double *yG
  3447. #endif
  3448. );
  3449.  
  3450. extern
  3451. DTL_EXPORT
  3452. int 
  3453. OS_PASCAL
  3454. DTLgraphicWindowExtents(
  3455. #ifdef use_prototypes
  3456. DtlGraphicId    rid,
  3457. int *ulX,
  3458. int *ulY,
  3459. int *lrX,
  3460. int *lrY
  3461. #endif
  3462. );
  3463.  
  3464. extern
  3465. DTL_EXPORT
  3466. int 
  3467. OS_PASCAL
  3468. DTLgraphicVisibleGraphicExtents(
  3469. #ifdef use_prototypes
  3470. DtlGraphicId    rid,
  3471. double *ulX,
  3472. double *ulY,
  3473. double *lrX,
  3474. double *lrY
  3475. #endif
  3476. );
  3477.  
  3478. extern
  3479. DTL_EXPORT
  3480. int 
  3481. OS_PASCAL
  3482. DTLgraphicOverallGraphicExtents(
  3483. #ifdef use_prototypes
  3484. DtlGraphicId    rid,
  3485. double *ulX,
  3486. double *ulY,
  3487. double *lrX,
  3488. double *lrY
  3489. #endif
  3490. );
  3491.  
  3492.  
  3493. /*** Graphics Routines ***/
  3494.  
  3495. extern
  3496. DTL_EXPORT
  3497. int
  3498. OS_PASCAL
  3499. DTLmapGraphic(
  3500. #ifdef use_prototypes
  3501. DtlGraphicId    rid
  3502. #endif
  3503. );
  3504.  
  3505. extern
  3506. DTL_EXPORT
  3507. int
  3508. OS_PASCAL
  3509. DTLunmapGraphic(
  3510. #ifdef use_prototypes
  3511. DtlGraphicId    rid
  3512. #endif
  3513. );
  3514.  
  3515. extern
  3516. DTL_EXPORT
  3517. int
  3518. OS_PASCAL
  3519. DTLraiseGraphic(
  3520. #ifdef use_prototypes
  3521. DtlGraphicId    rid
  3522. #endif
  3523. );
  3524.  
  3525. extern
  3526. DTL_EXPORT
  3527. int
  3528. OS_PASCAL
  3529. DTLlowerGraphic(
  3530. #ifdef use_prototypes
  3531. DtlGraphicId    rid
  3532. #endif
  3533. );
  3534.  
  3535.  
  3536. extern
  3537. DTL_EXPORT
  3538. int
  3539. OS_PASCAL
  3540. DTLenableGraphic(
  3541. #ifdef use_prototypes
  3542. DtlGraphicId   rid,
  3543. int            on_or_off
  3544. #endif           
  3545. );
  3546.  
  3547. extern
  3548. DTL_EXPORT
  3549. int
  3550. OS_PASCAL
  3551. DTLremoveGraphicScrollbars(
  3552. #ifdef use_prototypes
  3553. DtlGraphicId gid
  3554. #endif
  3555. );
  3556.  
  3557.  
  3558. /*** Pick Routines ***/
  3559.  
  3560.  
  3561. extern
  3562. DTL_EXPORT
  3563. int
  3564. OS_PASCAL
  3565. DTLhighlightGraphicRegion(
  3566. #ifdef use_prototypes
  3567. DtlGraphicId    rid,
  3568. int    x, 
  3569. int    y,
  3570. int    width, 
  3571. int    height
  3572. #endif
  3573. );
  3574.  
  3575. extern
  3576. DTL_EXPORT
  3577. int
  3578. OS_PASCAL
  3579. DTLunhighlightGraphicRegion(
  3580. #ifdef use_prototypes
  3581. DtlGraphicId    rid
  3582. #endif
  3583. );
  3584.  
  3585.  
  3586.  
  3587. /** Utility System Prototypes
  3588. We specify the DTL utility routines.
  3589. **/
  3590.  
  3591. extern
  3592. DTL_EXPORT
  3593. char *
  3594. OS_PASCAL
  3595. DTLparseAttribute(
  3596. #ifdef use_prototypes
  3597. DtlContextId    id,
  3598. char    *string,
  3599. char    *aname,
  3600. char     vbuf[],
  3601. int    buf_size
  3602. #endif
  3603. );
  3604.  
  3605.  
  3606. /* PHASING OUT AFTER 2.0 */
  3607. #define DTLgetAttribute(a,b,c,d,e) DTLparseAttribute(a,b,c,d,e)
  3608.  
  3609.  
  3610. extern
  3611. DTL_EXPORT
  3612. unsigned long
  3613. OS_PASCAL
  3614. DTLgetElement(
  3615. #ifdef use_prototypes
  3616. DtlBookId    bid,
  3617. char    *aname,
  3618. char    *aval
  3619. #endif
  3620. );
  3621.  
  3622. extern 
  3623. DTL_EXPORT
  3624. DtlBookId
  3625. OS_PASCAL
  3626. DTLgetBook(
  3627. #ifdef use_prototypes
  3628. DtlContextId id, 
  3629. char *dbase, 
  3630. char *book_name
  3631. #endif
  3632. );
  3633.  
  3634. extern 
  3635. DTL_EXPORT
  3636. DtlViewId
  3637. OS_PASCAL
  3638. DTLgetView(
  3639. #ifdef use_prototypes
  3640. DtlContextId id, 
  3641. char *dbase, 
  3642. char *book_name, 
  3643. char *view_name, 
  3644. unsigned long root
  3645. #endif
  3646. );
  3647.  
  3648.  
  3649. extern 
  3650. DTL_EXPORT
  3651. DtlTocViewId
  3652. OS_PASCAL
  3653. DTLgetTocView(
  3654. #ifdef use_prototypes
  3655. DtlContextId id, 
  3656. char *dbase, 
  3657. char *book_name, 
  3658. char *view_name, 
  3659. unsigned long root
  3660. #endif
  3661. );
  3662.  
  3663. /** Plugin Support Routines 
  3664. **/
  3665.  
  3666. extern
  3667. DTL_EXPORT
  3668. int
  3669. OS_PASCAL
  3670. DTLpluginInit(
  3671. #ifdef use_prototypes
  3672.         DtlPluginInfoId pluginInfoId,
  3673.         char *pluginList,
  3674.         char *pluginDirs          
  3675. #endif
  3676. );
  3677.  
  3678. extern
  3679. DTL_EXPORT
  3680. int
  3681. OS_PASCAL
  3682. DTLpluginAdd(
  3683. #ifdef use_prototypes
  3684.         DtlPluginInfoId pluginInfoId,
  3685.         char *path,
  3686.         char *init,
  3687.     char *destroy
  3688. #endif
  3689. );
  3690.  
  3691. extern
  3692. DTL_EXPORT
  3693. int
  3694. OS_PASCAL
  3695. DTLpluginSetDestroyCallback(
  3696. #ifdef use_prototypes
  3697.         DtlPluginId plugin,
  3698.     Up destroy
  3699. #endif
  3700. );
  3701.  
  3702. extern
  3703. DTL_EXPORT
  3704. Up
  3705. OS_PASCAL
  3706. DTLpluginInqDestroyCallback(
  3707. #ifdef use_prototypes
  3708.         DtlPluginId plugin
  3709. #endif
  3710. );
  3711.  
  3712. extern
  3713. DTL_EXPORT
  3714. int
  3715. OS_PASCAL
  3716. DTLsetMaxFds(
  3717. #ifdef use_prototypes
  3718.        DtlContextId contextId, 
  3719.     int maxFds
  3720. #endif
  3721. );
  3722.  
  3723. /** Locale and Conversion routines
  3724. **/
  3725.  
  3726. extern
  3727. DTL_EXPORT
  3728. void
  3729. OS_PASCAL
  3730. DTLunicode2native(
  3731. #ifdef use_prototypes
  3732. UCSchar16 *unicode,
  3733. char *native,
  3734. size_t numChars
  3735. #endif
  3736. );
  3737.  
  3738. extern
  3739. DTL_EXPORT
  3740. void
  3741. OS_PASCAL
  3742. DTLunicode2multibyte(
  3743. #ifdef use_prototypes
  3744. UCSchar16 *unicode, 
  3745. char *multibyte,    
  3746. char *encodingName,
  3747. size_t numChars
  3748. #endif
  3749. );
  3750.  
  3751. extern
  3752. DTL_EXPORT
  3753. void
  3754. OS_PASCAL
  3755. DTLnative2unicode(
  3756. #ifdef use_prototypes
  3757. char *native,
  3758. UCSchar16 *unicode,
  3759. size_t numUCSchar16s
  3760. #endif
  3761. );
  3762.  
  3763. extern
  3764. DTL_EXPORT
  3765. void
  3766. OS_PASCAL
  3767. DTLmultibyte2unicode(
  3768. #ifdef use_prototypes
  3769. char *multibyte, 
  3770. UCSchar16 *unicode, 
  3771. char *encodingName,
  3772. size_t numUCSchar16s
  3773. #endif
  3774. );
  3775.  
  3776. extern
  3777. DTL_EXPORT
  3778. int
  3779. OS_PASCAL
  3780. DTLunicodeLength(
  3781. #ifdef use_prototypes
  3782. UCSchar16 * unicode
  3783. #endif
  3784. );
  3785.  
  3786. extern
  3787. DTL_EXPORT
  3788. int
  3789. OS_PASCAL
  3790. DTLnativeMaxPerChar(
  3791. #ifdef use_prototypes
  3792. #endif
  3793. );
  3794.  
  3795. extern
  3796. DTL_EXPORT
  3797. int
  3798. OS_PASCAL
  3799. DTLmultibyteMaxPerChar(
  3800. #ifdef use_prototypes
  3801. char *encodingName
  3802. #endif
  3803. );
  3804.  
  3805. extern
  3806. DTL_EXPORT
  3807. char *
  3808. OS_PASCAL
  3809. DTLgetLocale(
  3810. #ifdef use_prototypes
  3811. #endif
  3812. );
  3813.  
  3814. extern
  3815. DTL_EXPORT
  3816. void *
  3817. OS_PASCAL
  3818. DTLinqBookInternal(
  3819. #ifdef use_prototypes
  3820. DtlBookId dtlBookId,
  3821. char *internalDataMember
  3822. #endif
  3823. );
  3824.  
  3825. extern
  3826. DTL_EXPORT
  3827. void *
  3828. OS_PASCAL
  3829. DTLinqContextInternal(
  3830. #ifdef use_prototypes
  3831. DtlContextId contextId,
  3832. char *internalDataMember
  3833. #endif
  3834. );
  3835.  
  3836. #ifdef DTL__WINDOWS_DEFS
  3837.  
  3838. extern
  3839. DTL_EXPORT
  3840. HANDLE
  3841. OS_PASCAL
  3842. DTLdllInqHINSTANCE(
  3843. #ifdef use_prototypes
  3844. #endif
  3845. );
  3846.  
  3847. extern
  3848. DTL_EXPORT
  3849. int
  3850. OS_PASCAL
  3851. DTLdllInqRefcount(
  3852. #ifdef use_prototypes
  3853. #endif
  3854. );
  3855.  
  3856. #endif /* DTL__WINDOWS_DEFS */
  3857.  
  3858. /*** DTLNODE functions ***/
  3859.  
  3860. extern
  3861. DTL_EXPORT
  3862. int
  3863. OS_PASCAL
  3864. DTLNODEisBefore(
  3865. #ifdef use_prototypes
  3866. DtlBookId bid,
  3867. unsigned long eid1,
  3868. unsigned long eid2
  3869. #endif
  3870. );
  3871.  
  3872. extern
  3873. DTL_EXPORT
  3874. int
  3875. OS_PASCAL
  3876. DTLNODEisAfter(
  3877. #ifdef use_prototypes
  3878. DtlBookId bid,
  3879. unsigned long eid1,
  3880. unsigned long eid2
  3881. #endif
  3882. );
  3883.  
  3884. extern
  3885. DTL_EXPORT
  3886. int
  3887. OS_PASCAL
  3888. DTLNODEisEqual(
  3889. #ifdef use_prototypes
  3890. DtlBookId bid,
  3891. unsigned long eid1,
  3892. unsigned long eid2
  3893. #endif
  3894. );
  3895.  
  3896. extern
  3897. DTL_EXPORT
  3898. int
  3899. OS_PASCAL
  3900. DTLNODEisParent(
  3901. #ifdef use_prototypes
  3902. DtlBookId bid,
  3903. unsigned long eid1,
  3904. unsigned long eid2
  3905. #endif
  3906. );
  3907.  
  3908. extern
  3909. DTL_EXPORT
  3910. int
  3911. OS_PASCAL
  3912. DTLNODEisChild(
  3913. #ifdef use_prototypes
  3914. DtlBookId bid,
  3915. unsigned long eid1,
  3916. unsigned long eid2
  3917. #endif
  3918. );
  3919.  
  3920. extern
  3921. DTL_EXPORT
  3922. int
  3923. OS_PASCAL
  3924. DTLNODEisAncestor(
  3925. #ifdef use_prototypes
  3926. DtlBookId bid,
  3927. unsigned long eid1,
  3928. unsigned long eid2
  3929. #endif
  3930. );
  3931.  
  3932. extern
  3933. DTL_EXPORT
  3934. int
  3935. OS_PASCAL
  3936. DTLNODEisDescendant(
  3937. #ifdef use_prototypes
  3938. DtlBookId bid,
  3939. unsigned long eid1,
  3940. unsigned long eid2
  3941. #endif
  3942. );
  3943.  
  3944. extern
  3945. DTL_EXPORT
  3946. int
  3947. OS_PASCAL
  3948. DTLNODEisSibling(
  3949. #ifdef use_prototypes
  3950. DtlBookId bid,
  3951. unsigned long eid1,
  3952. unsigned long eid2
  3953. #endif
  3954. );
  3955.  
  3956. extern
  3957. DTL_EXPORT
  3958. int
  3959. OS_PASCAL
  3960. DTLNODEwEid2name(
  3961. #ifdef use_prototypes
  3962. DtlBookId bid,
  3963. unsigned long eid,
  3964. int persistence_level,
  3965. UCSchar16* name,
  3966. int maxbuf
  3967. #endif
  3968. );
  3969.  
  3970. extern
  3971. DTL_EXPORT
  3972. int
  3973. OS_PASCAL
  3974. DTLNODEeid2name(
  3975. #ifdef use_prototypes
  3976. DtlBookId bid,
  3977. unsigned long eid,
  3978. int persistence_level,
  3979. char* name,
  3980. int maxbuf
  3981. #endif
  3982. );
  3983.  
  3984. extern
  3985. DTL_EXPORT
  3986. unsigned long
  3987. OS_PASCAL
  3988. DTLNODEname2eid(
  3989. #ifdef use_prototypes
  3990. DtlBookId bid,
  3991. char* name
  3992. #endif
  3993. );
  3994.  
  3995. extern
  3996. DTL_EXPORT
  3997. unsigned long
  3998. OS_PASCAL
  3999. DTLNODEwName2eid(
  4000. #ifdef use_prototypes
  4001. DtlBookId bid,
  4002. UCSchar16 *name
  4003. #endif
  4004. );
  4005.  
  4006. extern
  4007. DTL_EXPORT
  4008. unsigned long
  4009. OS_PASCAL
  4010. DTLNODEeid2globalNumber(
  4011. #ifdef use_prototypes
  4012. DtlBookId bid,unsigned long eid
  4013. #endif
  4014. );
  4015.  
  4016. extern
  4017. DTL_EXPORT
  4018. unsigned long
  4019. OS_PASCAL
  4020. DTLNODEglobalNumber2eid(
  4021. #ifdef use_prototypes
  4022. DtlBookId bid,
  4023. unsigned long global
  4024. #endif
  4025. );
  4026.  
  4027. extern
  4028. DTL_EXPORT
  4029. int
  4030. OS_PASCAL
  4031. DTLNODEnameLength(
  4032. #ifdef use_prototypes
  4033. char* name
  4034. #endif
  4035. );
  4036.  
  4037. extern
  4038. DTL_EXPORT
  4039. int
  4040. OS_PASCAL
  4041. DTLNODEwNameLength(
  4042. #ifdef use_prototypes
  4043. UCSchar16* name
  4044. #endif
  4045. );
  4046.  
  4047. extern
  4048. DTL_EXPORT
  4049. char *
  4050. OS_PASCAL
  4051. DTLgetExePath();
  4052.  
  4053. extern
  4054. DTL_EXPORT
  4055. char *
  4056. OS_PASCAL
  4057. DTLgetIniFilePath(
  4058. #ifdef use_prototypes
  4059. const char *szIniFilename
  4060. #endif
  4061. );
  4062.  
  4063. extern
  4064. DTL_EXPORT
  4065. void
  4066. OS_PASCAL
  4067. DTLfree(
  4068. #ifdef use_prototypes
  4069. char *ptr
  4070. #endif
  4071. );
  4072.  
  4073. /* If your SIT application does use threading, we recommend you call 
  4074.    DTLinit(???) before calling any other DTL function to allow for 
  4075.    as many threads as you may use */
  4076. extern
  4077. DTL_EXPORT
  4078. Boolean
  4079. OS_PASCAL
  4080. DTLinit(
  4081. #ifdef use_prototypes
  4082. int allowedNumberOfThreads
  4083. #endif
  4084. );
  4085.  
  4086. extern
  4087. DTL_EXPORT
  4088. int
  4089. OS_PASCAL
  4090. DTLreloadBookStyleSheets(
  4091. #ifdef use_prototypes
  4092. DtlBookId bid
  4093. #endif
  4094. );
  4095.  
  4096. enum {
  4097.    DTL__PERSISTENCE_NEW_BOOK,
  4098.    DTL__PERSISTENCE_RESTART,
  4099.    DTL__PERSISTENCE_EDIT
  4100. };
  4101.  
  4102.  
  4103.  
  4104. #ifdef __cplusplus
  4105. }
  4106. #endif /* __cplusplus */
  4107.  
  4108. #endif /* DTL_HEADER */
  4109.